ZenMagick 0.9.10


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

Class ZMProductCouponRestriction

ZMObject
└─ZMProductCouponRestriction

public class ZMProductCouponRestriction
extends ZMObject

Single coupon restriction.

Author:
DerManoMann

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

__construct(boolean allowed, int productId)

Create new coupon restriction.

A

getProduct()

Returns the product.

boolean

isAllowed()

Checks if this coupon restriction is allowed.

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

Method Detail

model\checkout\coupons\ZMProductCouponRestriction.php at line 44

__construct

public void __construct(boolean allowed, int productId)

Create new coupon restriction.

Parameters:
allowed - The allowed flag.
productId - The product id this restriction applies to.

model\checkout\coupons\ZMProductCouponRestriction.php at line 70

getProduct

public A getProduct()

Returns the product.

Returns:
ZMProduct instance.

model\checkout\coupons\ZMProductCouponRestriction.php at line 63

isAllowed

public boolean isAllowed()

Checks if this coupon restriction is allowed.

Returns:
true if this coupon restriction is allowed, false if not.

ZenMagick 0.9.10