Open Monograph Press  3.3.0
Money\Parser\BitcoinMoneyParser Class Reference
Inheritance diagram for Money\Parser\BitcoinMoneyParser:
Money\MoneyParser

Public Member Functions

 __construct ($fractionDigits)
 
 parse ($money, $forceCurrency=null)
 

Detailed Description

Parses Bitcoin currency to Money.

Author
Frederik Bosch f.bos.nosp@m.ch@g.nosp@m.enkgo.nosp@m..nl

Definition at line 16 of file BitcoinMoneyParser.php.

Constructor & Destructor Documentation

◆ __construct()

Money\Parser\BitcoinMoneyParser::__construct (   $fractionDigits)
Parameters
int$fractionDigits

Definition at line 29 of file BitcoinMoneyParser.php.

Member Function Documentation

◆ parse()

Money\Parser\BitcoinMoneyParser::parse (   $money,
  $forceCurrency = null 
)

{Parses a string into a Money object (including currency).

Parameters
string$money
Currency | string | null$forceCurrency
Returns
Money
Exceptions
Exception
}

Implements Money\MoneyParser.

Definition at line 37 of file BitcoinMoneyParser.php.

References Money\Currencies\BitcoinCurrencies\CODE, and Money\Currencies\BitcoinCurrencies\SYMBOL.


The documentation for this class was generated from the following file: