interface ActionInterface

Interface ActionInterface contains base methods for action

Constants

TYPE_FIXED_DISCOUNT

Action type

TYPE_PERCENTAGE_DISCOUNT

Action type

Methods

string
getType()

Get type

setType(mixed $type)

Set type

array
getConfiguration()

Get configuration

setConfiguration(array|null $configuration)

Set configuration

getPromotion()

Get promotion

setPromotion(PromotionInterface $promotion = null)

Set promotion

Details

at line 34
string getType()

Get type

Return Value

string

at line 43
ActionInterface setType(mixed $type)

Set type

Parameters

mixed $type

Return Value

ActionInterface

at line 50
array getConfiguration()

Get configuration

Return Value

array

at line 59
ActionInterface setConfiguration(array|null $configuration)

Set configuration

Parameters

array|null $configuration

Return Value

ActionInterface

at line 66
PromotionInterface|null getPromotion()

Get promotion

Return Value

PromotionInterface|null

at line 75
ActionInterface setPromotion(PromotionInterface $promotion = null)

Set promotion

Parameters

PromotionInterface $promotion

Return Value

ActionInterface