interface PromotionInterface implements TimestampableInterface

Interface PromotionInterface contains base methods for promotion

Constants

ADJUSTMENT_TYPE

Promotion type

COUPON_TYPE

Promotion type

Methods

mixed
getCreatedAt()

No description

mixed
getUpdatedAt()

No description

mixed
setCreatedAt(DateTime $createdAt)

No description

mixed
setUpdatedAt(DateTime $updatedAt)

No description

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

setStartsAt(DateTime $startsAt = null)

Set start date

DateTime|null
getEndsAt()

Get end date

setEndsAt(DateTime $endsAt = null)

Set end date

bool|null
isCouponBased()

No description

setCouponBased(bool|null $couponBased)

No description

Collection|CouponInterface[]
getCoupons()

No description

Boolean
hasCoupon(CouponInterface $coupon)

No description

bool
hasCoupons()

No description

addCoupon(CouponInterface $coupon)

No description

Collection|RuleInterface[]
getRules()

No description

bool
hasRule(RuleInterface $rule)

No description

bool
hasRules()

No description

addRule(RuleInterface $rule)

No description

Collection|ActionInterface[]
getActions()

No description

bool
hasAction(ActionInterface $action)

No description

bool
hasActions()

No description

addAction(ActionInterface $action)

No description

addOrder(Order $order)

No description

removeOrder(Order $order)

No description

ArrayCollection
getOrders()

No description

Details

mixed getCreatedAt()

Return Value

mixed

mixed getUpdatedAt()

Return Value

mixed

mixed setCreatedAt(DateTime $createdAt)

Parameters

DateTime $createdAt

Return Value

mixed

mixed setUpdatedAt(DateTime $updatedAt)

Parameters

DateTime $updatedAt

Return Value

mixed

at line 38
string|null getName()

Get name

Return Value

string|null

at line 47
PromotionInterface setName(string|null $name)

Set name

Parameters

string|null $name

Return Value

PromotionInterface

at line 54
string|null getDescription()

Get description

Return Value

string|null

at line 63
PromotionInterface setDescription(string|null $description)

Set description

Parameters

string|null $description

Return Value

PromotionInterface

at line 70
int|null getPriority()

Get priority

Return Value

int|null

at line 79
PromotionInterface setPriority(int|null $priority)

Set priority

Parameters

int|null $priority

Return Value

PromotionInterface

at line 86
bool|null isExclusive()

Is exclusive

Return Value

bool|null

at line 95
PromotionInterface setExclusive(bool|null $exclusive)

Set exclusive

Parameters

bool|null $exclusive

Return Value

PromotionInterface

at line 102
int|null getUsageLimit()

Get usage limit

Return Value

int|null

at line 111
PromotionInterface setUsageLimit(int|null $usageLimit)

Set usage limit

Parameters

int|null $usageLimit

Return Value

PromotionInterface

at line 118
int|null getUsed()

Get usage

Return Value

int|null

at line 127
PromotionInterface setUsed(int|null $used)

Set usage

Parameters

int|null $used

Return Value

PromotionInterface

at line 132
incrementUsed()

Increment usage

at line 139
DateTime|null getStartsAt()

Get start date

Return Value

DateTime|null

at line 148
PromotionInterface setStartsAt(DateTime $startsAt = null)

Set start date

Parameters

DateTime $startsAt

Return Value

PromotionInterface

at line 155
DateTime|null getEndsAt()

Get end date

Return Value

DateTime|null

at line 164
PromotionInterface setEndsAt(DateTime $endsAt = null)

Set end date

Parameters

DateTime $endsAt

Return Value

PromotionInterface

at line 169
bool|null isCouponBased()

Return Value

bool|null

at line 176
PromotionInterface setCouponBased(bool|null $couponBased)

Parameters

bool|null $couponBased

Return Value

PromotionInterface

at line 181
Collection|CouponInterface[] getCoupons()

Return Value

Collection|CouponInterface[]

at line 188
Boolean hasCoupon(CouponInterface $coupon)

Parameters

CouponInterface $coupon

Return Value

Boolean

at line 193
bool hasCoupons()

Return Value

bool

at line 200
PromotionInterface addCoupon(CouponInterface $coupon)

Parameters

CouponInterface $coupon

Return Value

PromotionInterface

at line 207
PromotionInterface removeCoupon(CouponInterface $coupon)

Parameters

CouponInterface $coupon

Return Value

PromotionInterface

at line 212
Collection|RuleInterface[] getRules()

Return Value

Collection|RuleInterface[]

at line 219
bool hasRule(RuleInterface $rule)

Parameters

RuleInterface $rule

Return Value

bool

at line 224
bool hasRules()

Return Value

bool

at line 231
PromotionInterface addRule(RuleInterface $rule)

Parameters

RuleInterface $rule

Return Value

PromotionInterface

at line 238
PromotionInterface removeRule(RuleInterface $rule)

Parameters

RuleInterface $rule

Return Value

PromotionInterface

at line 243
Collection|ActionInterface[] getActions()

Return Value

Collection|ActionInterface[]

at line 250
bool hasAction(ActionInterface $action)

Parameters

ActionInterface $action

Return Value

bool

at line 255
bool hasActions()

Return Value

bool

at line 262
PromotionInterface addAction(ActionInterface $action)

Parameters

ActionInterface $action

Return Value

PromotionInterface

at line 269
PromotionInterface removeAction(ActionInterface $action)

Parameters

ActionInterface $action

Return Value

PromotionInterface

at line 277
PromotionInterface addOrder(Order $order)

Parameters

Order $order

Return Value

PromotionInterface

at line 284
PromotionInterface removeOrder(Order $order)

Parameters

Order $order

Return Value

PromotionInterface

at line 289
ArrayCollection getOrders()

Return Value

ArrayCollection