class OpenExchangeRates extends AbstractConverter

Constants

API_URL

Properties

protected $appId

Methods

array
converterDetails()

Returns information about the converter Must return array:

array
getExchangeRates($base, array $currencies)

Returns list of exchange rates for currencies specified.

getName()

No description

getDescription()

No description

Client
getHttpClient()

No description

$this
forgetCache()

Forget the repository cache.

getCacheKey()

No description

float|int
getCacheLifetime()

Get the cache lifetime.

cacheCallback($cacheKey, Closure $closure)

No description

Repository
getCacheDriver()

No description

__construct(array $config = [])

No description

Details

at line 22
array converterDetails()

Returns information about the converter Must return array:

[ 'name' => 'Open Exchange Rates', 'description' => 'Conversion services provided by Open Exchange Rates.' ]

Return Value

array

at line 33
array getExchangeRates($base, array $currencies)

Returns list of exchange rates for currencies specified.

Parameters

$base
array $currencies

Return Value

array

in AbstractConverter at line 36
getName()

No description

in AbstractConverter at line 41
getDescription()

No description

in AbstractConverter at line 49
protected Client getHttpClient()

No description

Return Value

Client

in AbstractConverter at line 63
$this forgetCache()

Forget the repository cache.

Return Value

$this

in AbstractConverter at line 73
getCacheKey()

No description

in AbstractConverter at line 83
float|int getCacheLifetime()

Get the cache lifetime.

Return Value

float|int

in AbstractConverter at line 88
protected cacheCallback($cacheKey, Closure $closure)

No description

Parameters

$cacheKey
Closure $closure

in AbstractConverter at line 99
protected Repository getCacheDriver()

No description

Return Value

Repository

at line 14
__construct(array $config = [])

No description

Parameters

array $config