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

Public Member Functions

 __construct (Currencies $currencies)
 
 format (Money $money)
 

Detailed Description

Formats a Money object as a decimal string.

Author
Teoh Han Hui teohh.nosp@m.anhu.nosp@m.i@gma.nosp@m.il.c.nosp@m.om

Definition at line 14 of file DecimalMoneyFormatter.php.

Constructor & Destructor Documentation

◆ __construct()

Money\Formatter\DecimalMoneyFormatter::__construct ( Currencies  $currencies)
Parameters
Currencies$currencies

Definition at line 27 of file DecimalMoneyFormatter.php.

Member Function Documentation

◆ format()

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

{Formats a Money object as string.

Parameters
Money$money
Returns
string

Exception\FormatterException}

Implements Money\MoneyFormatter.

Definition at line 35 of file DecimalMoneyFormatter.php.

References Money\Money\getAmount(), and Money\Money\getCurrency().


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