Class ExchangeRate
Abstract class that all Currency Exchange Rate Processors must extend
Abstract
Package: blesta\components\exchange\rates
Copyright: Copyright (c) 2010-2017, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/exchange_rates/exchange_rate.php
Package: blesta\components\exchange\rates
Copyright: Copyright (c) 2010-2017, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/exchange_rates/exchange_rate.php
abstract public
|
|
abstract public
mixed
|
#
getRate( string $currency_from, string $currency_to, float $amount = 1.0 )
Fetches the exchange rate from currency A to currency B using the given amount |
public
boolean
|
#
requiresKey( )
Determines whether an API key is necessary to retrieve exchange rates via the processor |
public
|
|
protected
array
|
#
convertRates( string $to_currency, array $rates )
Updates all currency rates given to convert the rates relative to the given currency |
protected
string
|
$key
The API key |