WebTorque\CurrencyConverter\EuropaXMLCurrencyConverter
Synopsis
class EuropaXMLCurrencyConverter
extends CurrencyConverter
{
- // members
- private static string $base_url = 'http://www.ecb.europa.eu';
- private static string $path = '/stats/eurofxref/eurofxref-daily.xml';
- // Inherited members from CurrencyConverter
- protected array $currencies;
- // methods
- public array|mixed retrieveCurrencies()
- public string getBaseCurrency()
- // Inherited methods from CurrencyConverter
- public static CurrencyConverter getConverter()
- public void getCurrencies()
- public void setCurrencies()
- public CacheInterface getCache()
- public mixed loadFromCache()
- public mixed saveToCache()
- public DBDecimal convert()
- public float getExchangeRate()
- public void loadCurrencies()
- public float rateForCurrency()
- public mixed retrieveCurrencies()
- public string getBaseCurrency()
Hierarchy
Members
private
- $base_url
- $path
protected
- $currencies
Methods
public
- getBaseCurrency() — This is the base currency respective of the service, not your base currency
- retrieveCurrencies()
Inherited from WebTorque\CurrencyConverter\CurrencyConverter
public
- convert() — Convert a value from one currency to another
- getBaseCurrency() — The base currency for the returned currencies
- getCache()
- getConverter()
- getCurrencies()
- getExchangeRate() — Get the exchange rate for converting from one currency to another
- loadCurrencies() — Load currencies, checks cache first, otherwise calls retreiveCurrencies
- loadFromCache() — Load currencies from Cache
- rateForCurrency() — Returns the rate for the passed currency
- retrieveCurrencies() — Load currencies from source
- saveToCache() — Save currencies to cache
- setCurrencies()