Open Journal Systems  3.3.0
Money\Formatter\AggregateMoneyFormatter Class Reference
Inheritance diagram for Money\Formatter\AggregateMoneyFormatter:
Money\MoneyFormatter

Public Member Functions

 __construct (array $formatters)
 
 format (Money $money)
 

Detailed Description

Formats a Money object using other Money formatters.

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

Definition at line 14 of file AggregateMoneyFormatter.php.

Constructor & Destructor Documentation

◆ __construct()

Money\Formatter\AggregateMoneyFormatter::__construct ( array  $formatters)
Parameters
MoneyFormatter[]$formatters

Definition at line 27 of file AggregateMoneyFormatter.php.

Member Function Documentation

◆ format()

Money\Formatter\AggregateMoneyFormatter::format ( Money  $money)

{Formats a Money object as string.

Parameters
Money$money
Returns
string

Exception\FormatterException}

Implements Money\MoneyFormatter.

Definition at line 45 of file AggregateMoneyFormatter.php.

References Money\Money\getCurrency().


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