Heystack\Ecommerce\Currency\Currency
Class Currency
- Author: Cam Spiers <cameron@heyday.co.nz>
Synopsis
class Currency
extends Currency
implements
CurrencyInterface,ViewableDataInterface
{
- // methods
- public void __construct()
- public Identifier getIdentifier()
- public bool isDefaultCurrency()
- public float getValue()
- public array getDynamicMethods()
- public array getCastings()
Hierarchy
Extends
- SebastianBergmann\Money\Currency
Implements
- Heystack\Ecommerce\Currency\Interfaces\CurrencyInterface
- Heystack\Core\ViewableData\ViewableDataInterface
Members
protected
- $default
—
Heystack\Ecommerce\Currency\bool
Whether the currency is the default - $value
—
float
The currency value
Methods
public
- __construct()
- getCastings() — Returns an array of SilverStripe DBField castings keyed by field name
- getDynamicMethods() — Defines what methods the implementing class implements dynamically through __get and __set
- getIdentifier() — Returns the identifier
- getValue() — Returns the value of the currency vis-a-vis the default currency
- isDefaultCurrency() — Returns whether the currency is the System's default