Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct (Currencies $currencies, Exchange $exchange) | |
convert (Money $money, Currency $counterCurrency, $roundingMode=Money::ROUND_HALF_UP) | |
Provides a way to convert Money to Money in another Currency using an exchange rate.
Definition at line 10 of file Converter.php.
Money\Converter::__construct | ( | Currencies | $currencies, |
Exchange | $exchange | ||
) |
Currencies | $currencies | |
Exchange | $exchange |
Definition at line 32 of file Converter.php.
Money\Converter::convert | ( | Money | $money, |
Currency | $counterCurrency, | ||
$roundingMode = Money::ROUND_HALF_UP |
|||
) |
Definition at line 45 of file Converter.php.
References Money\Money\getCurrency(), and Money\Money\multiply().