class Quantity extends AbstractCondition

Class Quantity

Properties

static string $elementType from AbstractCondition
static string $type
float $minQuantity
float $maxQuantity

Methods

setValues( array $values)

No description

string
__toString()

No description

static  string
getElementType()

No description

static  string
getType()

No description

mixed
checkConditionCart( Cart $cart, PriceRule $priceRule, bool|false $throwException = false)

Check if Cart is Valid for Condition.

bool
checkConditionProduct( Product $product, AbstractProductPriceRule $priceRule)

Check if Product is Valid for Condition.

float
getMinQuantity()

No description

setMinQuantity( float $minQuantity)

No description

float
getMaxQuantity()

No description

setMaxQuantity( float $maxQuantity)

No description

Details

in AbstractActionCondition at line line 36
setValues( array $values)

Parameters

array $values

in AbstractActionCondition at line line 54
string __toString()

Return Value

string

in AbstractActionCondition at line line 62
static string getElementType()

Return Value

string

in AbstractActionCondition at line line 70
static string getType()

Return Value

string

at line line 86
mixed checkConditionCart( Cart $cart, PriceRule $priceRule, bool|false $throwException = false)

Check if Cart is Valid for Condition.

Parameters

Cart $cart
PriceRule $priceRule
bool|false $throwException

Return Value

mixed

Exceptions

Exception

at line line 126
bool checkConditionProduct( Product $product, AbstractProductPriceRule $priceRule)

Check if Product is Valid for Condition.

Parameters

Product $product
AbstractProductPriceRule $priceRule

Return Value

bool

at line line 46
float getMinQuantity()

Return Value

float

at line line 54
setMinQuantity( float $minQuantity)

Parameters

float $minQuantity

at line line 62
float getMaxQuantity()

Return Value

float

at line line 70
setMaxQuantity( float $maxQuantity)

Parameters

float $maxQuantity