Open Journal Systems  3.3.0
Money\MoneyParser Interface Reference
Inheritance diagram for Money\MoneyParser:
Money\Parser\AggregateMoneyParser Money\Parser\BitcoinMoneyParser Money\Parser\DecimalMoneyParser Money\Parser\IntlLocalizedDecimalParser Money\Parser\IntlMoneyParser

Public Member Functions

 parse ($money, $forceCurrency=null)
 

Detailed Description

Parses a string into a Money object.

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

Definition at line 10 of file MoneyParser.php.

Member Function Documentation

◆ parse()

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

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

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

Implemented in Money\Parser\IntlLocalizedDecimalParser, Money\Parser\IntlMoneyParser, Money\Parser\AggregateMoneyParser, Money\Parser\DecimalMoneyParser, and Money\Parser\BitcoinMoneyParser.


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