PromotionInterface
interface PromotionInterface implements TimestampableInterface
Interface PromotionInterface contains base methods for promotion
Constants
| ADJUSTMENT_TYPE |
Promotion type |
| COUPON_TYPE |
Promotion type |
Methods
string|null
getName()
Get name
setName(string|null $name)
Set name
string|null
getDescription()
Get description
setDescription(string|null $description)
Set description
int|null
getPriority()
Get priority
setPriority(int|null $priority)
Set priority
bool|null
isExclusive()
Is exclusive
setExclusive(bool|null $exclusive)
Set exclusive
int|null
getUsageLimit()
Get usage limit
setUsageLimit(int|null $usageLimit)
Set usage limit
int|null
getUsed()
Get usage
setUsed(int|null $used)
Set usage
incrementUsed()
Increment usage
DateTime|null
getStartsAt()
Get start date
bool|null
isCouponBased()
No description
setCouponBased(bool|null $couponBased)
No description
Collection|CouponInterface[]
getCoupons()
No description
Boolean
bool
hasCoupons()
No description
Collection|RuleInterface[]
getRules()
No description
bool
bool
hasRules()
No description
Collection|ActionInterface[]
getActions()
No description
bool
bool
hasActions()
No description
ArrayCollection
getOrders()
No description
Details
in TimestampableInterface at line 21
mixed
getCreatedAt()
in TimestampableInterface at line 26
mixed
getUpdatedAt()
in TimestampableInterface at line 33
mixed
setCreatedAt(DateTime $createdAt)
in TimestampableInterface at line 40
mixed
setUpdatedAt(DateTime $updatedAt)
at line 38
string|null
getName()
Get name
at line 47
PromotionInterface
setName(string|null $name)
Set name
at line 54
string|null
getDescription()
Get description
at line 63
PromotionInterface
setDescription(string|null $description)
Set description
at line 70
int|null
getPriority()
Get priority
at line 79
PromotionInterface
setPriority(int|null $priority)
Set priority
at line 86
bool|null
isExclusive()
Is exclusive
at line 95
PromotionInterface
setExclusive(bool|null $exclusive)
Set exclusive
at line 102
int|null
getUsageLimit()
Get usage limit
at line 111
PromotionInterface
setUsageLimit(int|null $usageLimit)
Set usage limit
at line 118
int|null
getUsed()
Get usage
at line 127
PromotionInterface
setUsed(int|null $used)
Set usage
at line 132
incrementUsed()
Increment usage
at line 139
DateTime|null
getStartsAt()
Get start date
at line 148
PromotionInterface
setStartsAt(DateTime $startsAt = null)
Set start date
at line 155
DateTime|null
getEndsAt()
Get end date
at line 164
PromotionInterface
setEndsAt(DateTime $endsAt = null)
Set end date