Heystack\Ecommerce\Currency\Interfaces\CurrencyInterface
Defines what a Currency data object needs to implement
- Author: Glenn Bautista <glenn@heyday.co.nz>
- Copyright: Heyday
Synopsis
interface CurrencyInterface
{
- // methods
- public Identifier getIdentifier()
- public string getCurrencyCode()
- public bool isDefaultCurrency()
- public float getValue()
- public integer getDefaultFractionDigits()
- public string getDisplayName()
- public integer getNumericCode()
- public integer getSubUnit()
Methods
public
- getCurrencyCode() — Returns the Currency's code, e.g. NZD, USD
- getDefaultFractionDigits() — Returns the default number of fraction digits used with this currency.
- getDisplayName() — Returns the name that is suitable for displaying this currency.
- getIdentifier() — Returns the identifier
- getNumericCode() — Returns the ISO 4217 numeric code of this currency.
- getSubUnit() — Returns the ISO 4217 numeric code of this currency.
- getValue() — Returns the value of the currency vis-a-vis the default currency
- isDefaultCurrency() — Returns whether the currency is the System's default