class Rule implements RuleInterface

Class Rule

Properties

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

Methods

__construct()

Constructor

integer
getId()

Get id

string|null
getType()

Get type

setType(string|null $type)

Set type

array|null
getConfiguration()

Get configuration

setConfiguration(array|null $configuration)

Set configuration

getPromotion()

Get associated promotion

setPromotion(PromotionInterface $promotion = null)

Set associated promotion

Details

at line 69
__construct()

Constructor

at line 79
integer getId()

Get id

Return Value

integer

at line 87
string|null getType()

Get type

Return Value

string|null

at line 95
RuleInterface setType(string|null $type)

Set type

Parameters

string|null $type

Return Value

RuleInterface

at line 105
array|null getConfiguration()

Get configuration

Return Value

array|null

at line 113
RuleInterface setConfiguration(array|null $configuration)

Set configuration

Parameters

array|null $configuration

Return Value

RuleInterface

at line 123
PromotionInterface getPromotion()

Get associated promotion

Return Value

PromotionInterface

at line 131
RuleInterface setPromotion(PromotionInterface $promotion = null)

Set associated promotion

Parameters

PromotionInterface $promotion

Return Value

RuleInterface