ZenMagick 0.9.10


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

Class ZMCouponRestrictions

ZMObject
└─ZMCouponRestrictions

public class ZMCouponRestrictions
extends ZMObject

Collection of coupon restrictions.

Author:
DerManoMann

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

__construct(mixed categories)

Create new instance.

array

getCategories()

Returns the category restrictions.

array

getProducts()

Returns the product restrictions.

boolean

hasCategories()

Checks if there are categories.

boolean

hasProducts()

Checks if there are products.

boolean

hasRestrictions()

Checks if there are restrictions.

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

Method Detail

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

__construct

public void __construct(mixed categories)

Create new instance.


model\checkout\coupons\ZMCouponRestrictions.php at line 81

getCategories

public array getCategories()

Returns the category restrictions.

Returns:
An array of ZMCouponRestricton instances.

model\checkout\coupons\ZMCouponRestrictions.php at line 88

getProducts

public array getProducts()

Returns the product restrictions.

Returns:
An array of ZMCouponRestricton instances.

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

hasCategories

public boolean hasCategories()

Checks if there are categories.

Returns:
true if categories exist, false if not.

model\checkout\coupons\ZMCouponRestrictions.php at line 74

hasProducts

public boolean hasProducts()

Checks if there are products.

Returns:
true if products exist, false if not.

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

hasRestrictions

public boolean hasRestrictions()

Checks if there are restrictions.

Returns:
true if restrictions exist, false if not.

ZenMagick 0.9.10