SilverCommerce\TaxAdmin\Interfaces\TaxableProvider
Classes that use the Taxable trait must also implement TaxableProvider
Synopsis
interface TaxableProvider
{
- // methods
- public float getBasePrice()
- public TaxRate getTaxRate()
- public string getLocale()
- public bool getShowPriceWithTax()
- public bool|null getShowTaxString()
Methods
public
- getBasePrice() — A base price that can be provided to Taxable calculations
- getLocale() — Provide a string based locale for the current object (EG 'en_GB')
- getShowPriceWithTax() — Should we automatically show the price including TAX?
- getShowTaxString() — Should we add a "Tax String" (EG "Includes VAT") to the rendered currency?
- getTaxRate() — A \SilverCommerce\TaxAdmin\Model\TaxRate that can be used for Taxable calculations