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

Public Member Functions

 __construct (array $parsers)
 
 parse ($money, $forceCurrency=null)
 

Detailed Description

Parses a string into a Money object using other parsers.

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

Definition at line 14 of file AggregateMoneyParser.php.

Constructor & Destructor Documentation

◆ __construct()

Money\Parser\AggregateMoneyParser::__construct ( array  $parsers)
Parameters
MoneyParser[]$parsers

Definition at line 27 of file AggregateMoneyParser.php.

Member Function Documentation

◆ parse()

Money\Parser\AggregateMoneyParser::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 45 of file AggregateMoneyParser.php.


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