Method | Description | Returns |
---|---|---|
getId() | int | |
getName() | string | |
getPosition() | int | |
isFinal() | Once the rule matches its conditions, further rules will not be considered | bool |
isActive() | Defines if rule conditions should be checked or the whole rule is skipped | bool |
getCreated() | Date the record was created. | DateTime |
getModified() | Last modification date for the record. | DateTime |
getDiscount() | Discount | |
getConditions() | Collection (BaseCondition) | |
getActions() | Collection (BaseAction) | |
isNewRecord() | Check if the record is a new record | bool |
isHierarchicalModel() | Check whether a model is a hierarchical model, i.e. can have children | bool |
isVersionedModel() | Check whether a model is versioned | bool |
Discounts\Models\Frontend\Rule
Rule