SilverShop\Discounts\Actions\ItemPercentDiscount
Synopsis
class ItemPercentDiscount
extends ItemDiscountAction
{
- // Inherited members from ItemDiscountAction
- protected $infoitems;
- // Inherited members from DiscountAction
- protected Discount $discount;
- protected $remaining;
- protected bool $limited;
- // methods
- public void perform()
- // Inherited methods from ItemDiscountAction
- public void __construct()
- public void isForItems()
- protected boolean itemQualifies()
- // Inherited methods from DiscountAction
- public void __construct()
- protected float limit()
- protected boolean hasRemainingDiscount()
- public DiscountAction reduceRemaining()
- // Inherited methods from Action
- public abstract void perform()
- public abstract void isForItems()
Hierarchy
Members
protected
- $discount — SilverShop\Discounts\Model\Discount
- $infoitems
- $limited — SilverShop\Discounts\Actions\bool
- $remaining — float
Methods
public
Inherited from SilverShop\Discounts\Actions\ItemDiscountAction
protected
- itemQualifies() — Checks if the given item qualifies for a discount.
public
Inherited from SilverShop\Discounts\Actions\DiscountAction
protected
- hasRemainingDiscount() — Check if there is any further allowable amount to be discounted.
- limit() — Limit an amount to be within maximum allowable discount, and update the total remaining discountable amount;