SilverShop\Discounts\PriceInfo
Represent a price, along with adjustments made to it.
Synopsis
class PriceInfo
{
- // members
- protected $originalprice;
- protected $currentprice;
- protected array $adjustments = ;
- protected $bestadjustment;
- // methods
- public void __construct()
- public void getOriginalPrice()
- public void getPrice()
- public void adjustPrice()
- public void getCompoundedDiscount()
- public void getBestDiscount()
- public void getBestAdjustment()
- public void getAdjustments()
- protected void setBestAdjustment()
Members
protected
- $adjustments
- $bestadjustment
- $currentprice
- $originalprice
Methods
protected
- setBestAdjustment() — Sets the best adjustment, if the passed adjustment is indeed better.