CouponInterface
interface CouponInterface
Interface CouponInterface contains base methods for coupon
Methods
string
getCode()
Get code
setCode(string $code)
Set code
integer
getUsageLimit()
Get usage limit
setUsageLimit(integer $usageLimit)
Set usage limit
integer
getUsed()
Get number of times this coupon has been used
setUsed(integer $used)
Set number of times this coupon has been used
incrementUsed()
Increment usage
getPromotion()
Get associated promotion
bool
isValid()
Is this coupon valid
Details
at line 22
string
getCode()
Get code
at line 31
CouponInterface
setCode(string $code)
Set code
at line 38
integer
getUsageLimit()
Get usage limit
at line 47
CouponInterface
setUsageLimit(integer $usageLimit)
Set usage limit
at line 54
integer
getUsed()
Get number of times this coupon has been used
at line 63
CouponInterface
setUsed(integer $used)
Set number of times this coupon has been used
at line 70
CouponInterface
incrementUsed()
Increment usage
at line 77
PromotionInterface
getPromotion()
Get associated promotion
at line 86
CouponInterface
setPromotion(PromotionInterface $promotion = null)
Set the associated promotion
at line 94
bool
isValid()
Is this coupon valid