Rule
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
Details
at line 69
__construct()
Constructor
at line 79
integer
getId()
Get id
at line 87
string|null
getType()
Get type
at line 95
RuleInterface
setType(string|null $type)
Set type
at line 105
array|null
getConfiguration()
Get configuration
at line 113
RuleInterface
setConfiguration(array|null $configuration)
Set configuration
at line 123
PromotionInterface
getPromotion()
Get associated promotion
at line 131
RuleInterface
setPromotion(PromotionInterface $promotion = null)
Set associated promotion