RuleInterface
interface RuleInterface
Interface RuleInterface
Constants
| TYPE_ITEM_TOTAL |
Type of rule |
| TYPE_ITEM_COUNT |
Type of rule |
| TYPE_NUMBER_OF_DIFFERENT_PRODUCTS |
Configuration variable |
| TYPE_UNDER_SPECIFIC_AMOUNT |
Configuration variable |
| ITEM_TOTAL_ERROR |
Promotion validation error type |
| ITEM_COUNT_ERROR |
Promotion validation error type |
| ITEM_APPROVED_TOTAL_ERROR |
Promotion validation error type |
| ITEM_APPROVED_COUNT_ERROR |
Promotion validation error type |
| NUMBER_OF_DIFFERENT_PRODUCTS_ERROR |
Promotion validation error type |
| NUMBER_OF_DIFFERENT_APPROVED_PRODUCTS_ERROR |
Promotion validation error type |
Methods
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 82
string|null
getType()
Get type
at line 91
RuleInterface
setType(string|null $type)
Set type
at line 98
array|null
getConfiguration()
Get configuration
at line 107
RuleInterface
setConfiguration(array|null $configuration)
Set configuration
at line 114
PromotionInterface
getPromotion()
Get associated promotion
at line 123
RuleInterface
setPromotion(PromotionInterface $promotion = null)
Set associated promotion