interface ExchangeRateInterface in Currency 8.3
Defines an exchange rate.
Implementations may optionally implement any of the following interfaces:
Hierarchy
- interface \Drupal\currency\ExchangeRateInterface extends \Commercie\CurrencyExchange\ExchangeRateInterface
Expanded class hierarchy of ExchangeRateInterface
All classes that implement ExchangeRateInterface
1 file declares its use of ExchangeRateInterface
- ExchangeRateProviderDecoratorTest.php in tests/
src/ Unit/ Plugin/ Currency/ ExchangeRateProvider/ ExchangeRateProviderDecoratorTest.php
File
- src/
ExchangeRateInterface.php, line 13
Namespace
Drupal\currencyView source
interface ExchangeRateInterface extends GenericExchangeRateInterface {
/**
* Gets the plugin ID of the exchange rate provider that provided this rate.
*
* @return string|null
*/
public function getExchangeRateProviderId();
/**
* Sets the plugin ID of the exchange rate provider that provided this rate.
*
* @param string $id
*
* @return $this
*/
public function setExchangeRateProviderId($id);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExchangeRateInterface:: |
public | function | Gets the plugin ID of the exchange rate provider that provided this rate. | 1 |
ExchangeRateInterface:: |
public | function | Sets the plugin ID of the exchange rate provider that provided this rate. | 1 |