You are here

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\currency
View 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

Namesort descending Modifiers Type Description Overrides
ExchangeRateInterface::getExchangeRateProviderId public function Gets the plugin ID of the exchange rate provider that provided this rate. 1
ExchangeRateInterface::setExchangeRateProviderId public function Sets the plugin ID of the exchange rate provider that provided this rate. 1