class Conditions extends AbstractCondition

Class Conditions

Properties

static string $elementType from AbstractCondition
static string $type
AbstractCondition[] $conditions
string $operator

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.

getConditions()

No description

setConditions( AbstractCondition[] $conditions)

No description

string
getOperator()

No description

setOperator( string $operator)

No description

bool
check($checkCondition)

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 88
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 103
bool checkConditionProduct( Product $product, AbstractProductPriceRule $priceRule)

Check if Product is Valid for Condition.

Parameters

Product $product
AbstractProductPriceRule $priceRule

Return Value

bool

at line line 48
AbstractCondition[] getConditions()

Return Value

AbstractCondition[]

at line line 56
setConditions( AbstractCondition[] $conditions)

Parameters

AbstractCondition[] $conditions

at line line 64
string getOperator()

Return Value

string

at line line 72
setOperator( string $operator)

Parameters

string $operator

at line line 115
bool check($checkCondition)

Parameters

$checkCondition

Return Value

bool

Exceptions

Exception