class Action implements ActionInterface

Properties

protected int $id
protected string|null $type Action type
protected array|null $configuration Configuration of the action
protected PromotionInterface|null $promotion Associated promotion

Methods

integer
getId()

Get id

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 71
integer getId()

Get id

Return Value

integer

at line 79
string getType()

Get type

Return Value

string

at line 87
ActionInterface setType(mixed $type)

Set type

Parameters

mixed $type

Return Value

ActionInterface

at line 97
array getConfiguration()

Get configuration

Return Value

array

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

Set configuration

Parameters

array|null $configuration

Return Value

ActionInterface

at line 115
PromotionInterface|null getPromotion()

Get promotion

Return Value

PromotionInterface|null

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

Set promotion

Parameters

PromotionInterface $promotion

Return Value

ActionInterface