|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct (\NumberFormatter $formatter, Currencies $currencies) | |
| parse ($money, $forceCurrency=null) | |
Parses a string into a Money object using intl extension.
Definition at line 17 of file IntlMoneyParser.php.
| Money\Parser\IntlMoneyParser::__construct | ( | \NumberFormatter | $formatter, |
| Currencies | $currencies | ||
| ) |
| \NumberFormatter | $formatter | |
| Currencies | $currencies |
Definition at line 39 of file IntlMoneyParser.php.
| Money\Parser\IntlMoneyParser::parse | ( | $money, | |
$forceCurrency = null |
|||
| ) |
{Parses a string into a Money object (including currency).
| string | $money | |
| Currency | string | null | $forceCurrency |
| Exception |
Implements Money\MoneyParser.
Definition at line 48 of file IntlMoneyParser.php.
References Money\Number\roundMoneyValue().