class ShippingRule extends AbstractCondition

Class ShippingRule

Properties

static string $elementType from AbstractCondition
static string $type
int $shippingRule

Methods

setValues( array $values)

No description

string
__toString()

No description

static  string
getElementType()

No description

static  string
getType()

No description

boolean
checkCondition( Carrier $carrier, Cart $cart, Address $address, ShippingRule $shippingRule)

Check if Cart is Valid for Condition.

string
getCacheKey()

get cache key for Condition. Use this method to invalidate a condition

int
getShippingRule()

No description

setShippingRule( int $shippingRule)

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 49
boolean checkCondition( Carrier $carrier, Cart $cart, Address $address, ShippingRule $shippingRule)

Check if Cart is Valid for Condition.

Parameters

Carrier $carrier
Cart $cart
Address $address
ShippingRule $shippingRule

Return Value

boolean

in AbstractCondition at line line 43
string getCacheKey()

get cache key for Condition. Use this method to invalidate a condition

Return Value

string

at line line 63
int getShippingRule()

Return Value

int

at line line 71
setShippingRule( int $shippingRule)

Parameters

int $shippingRule