|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct ($fractionDigits) | |
| parse ($money, $forceCurrency=null) | |
Parses Bitcoin currency to Money.
Definition at line 16 of file BitcoinMoneyParser.php.
| Money\Parser\BitcoinMoneyParser::__construct | ( | $fractionDigits | ) |
| int | $fractionDigits |
Definition at line 29 of file BitcoinMoneyParser.php.
| Money\Parser\BitcoinMoneyParser::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 37 of file BitcoinMoneyParser.php.
References Money\Currencies\BitcoinCurrencies\CODE, and Money\Currencies\BitcoinCurrencies\SYMBOL.