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

setPromotion(PromotionInterface $promotion = null)

Set associated promotion

Details

at line 82
string|null getType()

Get type

Return Value

string|null

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

Set type

Parameters

string|null $type

Return Value

RuleInterface

at line 98
array|null getConfiguration()

Get configuration

Return Value

array|null

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

Set configuration

Parameters

array|null $configuration

Return Value

RuleInterface

at line 114
PromotionInterface getPromotion()

Get associated promotion

Return Value

PromotionInterface

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

Set associated promotion

Parameters

PromotionInterface $promotion

Return Value

RuleInterface