ZMObject
└─ZMCouponRestrictions
public class ZMCouponRestrictions
extends ZMObject
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMCouponRestrictions(mixed categories) Create new instance. |
|
| Method Summary | |
|---|---|
| array | Returns the category restrictions. |
| array | Returns the product restrictions. |
| boolean | Checks if there are categories. |
| boolean | Checks if there are products. |
| boolean | Checks if there are restrictions. |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMCouponRestrictions(mixed categories)
Create new instance.
public array getCategories()
Returns the category restrictions.
ZMCouponRestricton instances.public array getProducts()
Returns the product restrictions.
ZMCouponRestricton instances.public boolean hasCategories()
Checks if there are categories.
true if categories exist, false if not.public boolean hasProducts()
Checks if there are products.
true if products exist, false if not.public boolean hasRestrictions()
Checks if there are restrictions.
true if restrictions exist, false if not.
Collection of coupon restrictions.