Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ExchangeRate.php
Go to the documentation of this file.
1 <?php
9 
17 {
18  const KEY_CURRENCY_TO = 'currency_to';
19  const KEY_RATE = 'rate';
20 
24  public function getCurrencyTo()
25  {
26  return $this->_get(self::KEY_CURRENCY_TO);
27  }
28 
32  public function setCurrencyTo($code)
33  {
34  return $this->setData(self::KEY_CURRENCY_TO, $code);
35  }
36 
40  public function getRate()
41  {
42  return $this->_get(self::KEY_RATE);
43  }
44 
48  public function setRate($rate)
49  {
50  return $this->setData(self::KEY_RATE, $rate);
51  }
52 
56  public function getExchangeRates()
57  {
58  return $this->_get(self::KEY_EXCHANGE_RATES);
59  }
60 
64  public function setExchangeRates(array $exchangeRates = null)
65  {
66  return $this->setData(self::KEY_EXCHANGE_RATES, $exchangeRates);
67  }
68 
72  public function getExtensionAttributes()
73  {
74  return $this->_getExtensionAttributes();
75  }
76 
80  public function setExtensionAttributes(
81  \Magento\Directory\Api\Data\ExchangeRateExtensionInterface $extensionAttributes
82  ) {
83  return $this->_setExtensionAttributes($extensionAttributes);
84  }
85 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$extensionAttributes
Definition: payment.php:22
setExtensionAttributes(\Magento\Directory\Api\Data\ExchangeRateExtensionInterface $extensionAttributes)
setExchangeRates(array $exchangeRates=null)
$code
Definition: info.phtml:12