SilverShop\Discounts\Actions\SubtotalDiscountAction
Synopsis
class SubtotalDiscountAction
extends DiscountAction
{
- // members
- protected $subtotal;
- // Inherited members from DiscountAction
- protected Discount $discount;
- protected $remaining;
- protected bool $limited;
- // methods
- public void __construct()
- public void perform()
- public void isForItems()
- // 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
- $limited — SilverShop\Discounts\Actions\bool
- $remaining — float
- $subtotal
Methods
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;