interface CurrencyManagerInterface

Interface CurrencyManagerInterface

Methods

float
getRelativeRatio(string $referenceCurrencyCode, string $currencyCode)

Get ratio for specified currencies

Money
convert(Money $amount, string $currencyCode)

Convert the amount into the currencyCode given in parameter

saveCurrency(RatioStorage $currency)

Persist Currency

Details

at line 31
float getRelativeRatio(string $referenceCurrencyCode, string $currencyCode)

Get ratio for specified currencies

Parameters

string $referenceCurrencyCode
string $currencyCode

Return Value

float

Exceptions

AlligatorCurrencyException

at line 40
Money convert(Money $amount, string $currencyCode)

Convert the amount into the currencyCode given in parameter

Parameters

Money $amount
string $currencyCode in the list of currencies from config.yml

Return Value

Money

at line 48
RatioStorage saveCurrency(RatioStorage $currency)

Persist Currency

Parameters

RatioStorage $currency

Return Value

RatioStorage