SilverShop\Discounts\Actions\DiscountAction
Synopsis
class DiscountAction
extends Action
{
- // members
- protected Discount $discount;
- protected $remaining;
- protected bool $limited;
- // methods
- 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
Methods
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;