interface PromotionSubjectInterface

Interface PromotionSubjectInterface contains promotion methods

Methods

Boolean
hasPromotion(PromotionInterface $promotion)

Has Promotion.

Collection|PromotionInterface[]
getPromotions()

Get Promotions.

integer
getPromotionSubjectCount()

Count promotion subjects.

Details

at line 26
Boolean hasPromotion(PromotionInterface $promotion)

Has Promotion.

Parameters

PromotionInterface $promotion

Return Value

Boolean

at line 35
PromotionSubjectInterface addPromotion(PromotionInterface $promotion)

Add Promotion.

Parameters

PromotionInterface $promotion

Return Value

PromotionSubjectInterface

at line 44
PromotionSubjectInterface removePromotion(PromotionInterface $promotion)

Remove Promotion.

Parameters

PromotionInterface $promotion

Return Value

PromotionSubjectInterface

at line 51
Collection|PromotionInterface[] getPromotions()

Get Promotions.

Return Value

Collection|PromotionInterface[]

at line 59
integer getPromotionSubjectCount()

Count promotion subjects.

Return Value

integer