ZenMagick 0.9.10


zenmagick.store.shared.model.checkout.coupons\ZMCategoryCouponRestriction
model\checkout\coupons\ZMCategoryCouponRestriction.php at line 33

Class ZMCategoryCouponRestriction

ZMObject
└─ZMCategoryCouponRestriction

public class ZMCategoryCouponRestriction
extends ZMObject

Single coupon restriction.

Author:
DerManoMann

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct(mixed allowed, mixed categoryId)

Create new instance.

A

getCategory()

Returns the category.

boolean

isAllowed()

Check if allowed.

Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

model\checkout\coupons\ZMCategoryCouponRestriction.php at line 41

__construct

public void __construct(mixed allowed, mixed categoryId)

Create new instance.


model\checkout\coupons\ZMCategoryCouponRestriction.php at line 67

getCategory

public A getCategory()

Returns the category.

Returns:
ZMCategory instance.

model\checkout\coupons\ZMCategoryCouponRestriction.php at line 60

isAllowed

public boolean isAllowed()

Check if allowed.

Returns:
true if allowed, false if not.

ZenMagick 0.9.10