Heystack\Ecommerce\Currency\MoneyCasting
Class Money
Synopsis
class MoneyCasting
extends ViewableData
{
- // methods
- public MoneyCasting setValue()
- public Money getValue()
- public string Nice()
- public string Currency()
- public string Amount()
- public string forTemplate()
- protected IntlFormatter getFormatter()
- public bool exists()
- public static void castMoneyToString()
- // Inherited methods from HasLocaleServiceTrait
- public void setLocaleService()
- public LocaleServiceInterface getLocaleService()
Hierarchy
Members
private
- $casting
protected
- $localeService — \Heystack\Ecommerce\Locale\Interfaces\LocaleServiceInterface
- $value — \SebastianBergmann\Money\Money
Methods
protected
public
- Amount()
- Currency()
- Nice() — Remove country codes that sometimes appear in front of currency symbols
- castMoneyToString()
- exists() — The value "exists" if it is not 0
- forTemplate()
- getValue()
- setValue()