You are here

public function ExchangeRate::__construct in Currency 8.3

Constructs a new instance.

Parameters

string $source_currency_code: The code of the source currency.

string $destination_currency_code: The code of the destination currency.

string $rate: The exchange rate.

string $exchange_rate_provider_id: The ID of the exchange rate provider that provided this rate.

File

src/ExchangeRate.php, line 36

Class

ExchangeRate
Provides an exchange rate.

Namespace

Drupal\currency

Code

public function __construct($source_currency_code, $destination_currency_code, $rate, $exchange_rate_provider_id) {
  parent::__construct($source_currency_code, $destination_currency_code, $rate);
  $this->exchangeRateProviderId = $exchange_rate_provider_id;
}