Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Currency.php
Go to the documentation of this file.
1 <?php
7 
13 {
17  public function getGlobalCurrencyCode()
18  {
19  return $this->getData(self::KEY_GLOBAL_CURRENCY_CODE);
20  }
21 
25  public function getBaseCurrencyCode()
26  {
27  return $this->getData(self::KEY_BASE_CURRENCY_CODE);
28  }
29 
33  public function getStoreCurrencyCode()
34  {
35  return $this->getData(self::KEY_STORE_CURRENCY_CODE);
36  }
37 
41  public function getQuoteCurrencyCode()
42  {
43  return $this->getData(self::KEY_QUOTE_CURRENCY_CODE);
44  }
45 
49  public function getStoreToBaseRate()
50  {
51  return $this->getData(self::KEY_STORE_TO_BASE_RATE);
52  }
53 
57  public function getStoreToQuoteRate()
58  {
59  return $this->getData(self::KEY_STORE_TO_QUOTE_RATE);
60  }
61 
65  public function getBaseToGlobalRate()
66  {
67  return $this->getData(self::KEY_BASE_TO_GLOBAL_RATE);
68  }
69 
73  public function getBaseToQuoteRate()
74  {
75  return $this->getData(self::KEY_BASE_TO_QUOTE_RATE);
76  }
77 
84  public function setGlobalCurrencyCode($globalCurrencyCode)
85  {
86  return $this->setData(self::KEY_GLOBAL_CURRENCY_CODE, $globalCurrencyCode);
87  }
88 
95  public function setBaseCurrencyCode($baseCurrencyCode)
96  {
97  return $this->setData(self::KEY_BASE_CURRENCY_CODE, $baseCurrencyCode);
98  }
99 
106  public function setStoreCurrencyCode($storeCurrencyCode)
107  {
108  return $this->setData(self::KEY_STORE_CURRENCY_CODE, $storeCurrencyCode);
109  }
110 
117  public function setQuoteCurrencyCode($quoteCurrencyCode)
118  {
119  return $this->setData(self::KEY_QUOTE_CURRENCY_CODE, $quoteCurrencyCode);
120  }
121 
128  public function setStoreToBaseRate($storeToBaseRate)
129  {
130  return $this->setData(self::KEY_STORE_TO_BASE_RATE, $storeToBaseRate);
131  }
132 
139  public function setStoreToQuoteRate($storeToQuoteRate)
140  {
141  return $this->setData(self::KEY_STORE_TO_QUOTE_RATE, $storeToQuoteRate);
142  }
143 
150  public function setBaseToGlobalRate($baseToGlobalRate)
151  {
152  return $this->setData(self::KEY_BASE_TO_GLOBAL_RATE, $baseToGlobalRate);
153  }
154 
161  public function setBaseToQuoteRate($baseToQuoteRate)
162  {
163  return $this->setData(self::KEY_BASE_TO_QUOTE_RATE, $baseToQuoteRate);
164  }
165 
171  public function getExtensionAttributes()
172  {
173  return $this->_getExtensionAttributes();
174  }
175 
182  public function setExtensionAttributes(\Magento\Quote\Api\Data\CurrencyExtensionInterface $extensionAttributes)
183  {
184  return $this->_setExtensionAttributes($extensionAttributes);
185  }
186 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
setStoreCurrencyCode($storeCurrencyCode)
Definition: Currency.php:106
setStoreToBaseRate($storeToBaseRate)
Definition: Currency.php:128
setStoreToQuoteRate($storeToQuoteRate)
Definition: Currency.php:139
setExtensionAttributes(\Magento\Quote\Api\Data\CurrencyExtensionInterface $extensionAttributes)
Definition: Currency.php:182
setQuoteCurrencyCode($quoteCurrencyCode)
Definition: Currency.php:117
setBaseToGlobalRate($baseToGlobalRate)
Definition: Currency.php:150
setBaseToQuoteRate($baseToQuoteRate)
Definition: Currency.php:161
setBaseCurrencyCode($baseCurrencyCode)
Definition: Currency.php:95
setGlobalCurrencyCode($globalCurrencyCode)
Definition: Currency.php:84