Currency Pair holding a base, a counter currency and a conversion ratio.
- Author
- Mathias Verraes
- See also
- http://en.wikipedia.org/wiki/Currency_pair
Definition at line 12 of file CurrencyPair.php.
◆ __construct()
Money\CurrencyPair::__construct |
( |
Currency |
$baseCurrency, |
|
|
Currency |
$counterCurrency, |
|
|
|
$conversionRatio |
|
) |
| |
◆ createFromIso()
static Money\CurrencyPair::createFromIso |
( |
|
$iso | ) |
|
|
static |
Creates a new Currency Pair based on "EUR/USD 1.2500" form representation.
- Parameters
-
string | $iso | String representation of the form "EUR/USD 1.2500" |
- Returns
- CurrencyPair
- Exceptions
-
Definition at line 69 of file CurrencyPair.php.
◆ equals()
◆ getBaseCurrency()
Money\CurrencyPair::getBaseCurrency |
( |
| ) |
|
◆ getConversionRatio()
Money\CurrencyPair::getConversionRatio |
( |
| ) |
|
◆ getCounterCurrency()
Money\CurrencyPair::getCounterCurrency |
( |
| ) |
|
◆ jsonSerialize()
Money\CurrencyPair::jsonSerialize |
( |
| ) |
|
The documentation for this class was generated from the following file: