123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <?php
- /**
- * Data Model implementing the Address interface
- *
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Directory\Model\Data;
- /**
- * Class Currency Information
- *
- * @codeCoverageIgnore
- */
- class CurrencyInformation extends \Magento\Framework\Api\AbstractExtensibleObject implements
- \Magento\Directory\Api\Data\CurrencyInformationInterface
- {
- const KEY_BASE_CURRENCY_CODE = 'base_currency_code';
- const KEY_BASE_CURRENCY_SYMBOL = 'base_currency_symbol';
- const KEY_DEFAULT_DISPLAY_CURRENCY_CODE = 'default_display_currency_code';
- const KEY_DEFAULT_DISPLAY_CURRENCY_SYMBOL = 'default_display_currency_symbol';
- const KEY_AVAILABLE_CURRENCY_CODES = 'available_currency_codes';
- const KEY_EXCHANGE_RATES = 'exchange_rates';
- /**
- * @inheritDoc
- */
- public function getBaseCurrencyCode()
- {
- return $this->_get(self::KEY_BASE_CURRENCY_CODE);
- }
- /**
- * @inheritDoc
- */
- public function setBaseCurrencyCode($code)
- {
- return $this->setData(self::KEY_BASE_CURRENCY_CODE, $code);
- }
- /**
- * @inheritDoc
- */
- public function getBaseCurrencySymbol()
- {
- return $this->_get(self::KEY_BASE_CURRENCY_SYMBOL);
- }
- /**
- * @inheritDoc
- */
- public function setBaseCurrencySymbol($symbol)
- {
- return $this->setData(self::KEY_BASE_CURRENCY_SYMBOL, $symbol);
- }
- /**
- * @inheritDoc
- */
- public function getDefaultDisplayCurrencyCode()
- {
- return $this->_get(self::KEY_DEFAULT_DISPLAY_CURRENCY_CODE);
- }
- /**
- * @inheritDoc
- */
- public function setDefaultDisplayCurrencyCode($code)
- {
- return $this->setData(self::KEY_DEFAULT_DISPLAY_CURRENCY_CODE, $code);
- }
- /**
- * @inheritDoc
- */
- public function getDefaultDisplayCurrencySymbol()
- {
- return $this->_get(self::KEY_DEFAULT_DISPLAY_CURRENCY_SYMBOL);
- }
- /**
- * @inheritDoc
- */
- public function setDefaultDisplayCurrencySymbol($symbol)
- {
- return $this->setData(self::KEY_DEFAULT_DISPLAY_CURRENCY_SYMBOL, $symbol);
- }
- /**
- * @inheritDoc
- */
- public function getAvailableCurrencyCodes()
- {
- return $this->_get(self::KEY_AVAILABLE_CURRENCY_CODES);
- }
- /**
- * @inheritDoc
- */
- public function setAvailableCurrencyCodes(array $codes = null)
- {
- return $this->setData(self::KEY_AVAILABLE_CURRENCY_CODES, $codes);
- }
- /**
- * @inheritDoc
- */
- public function getExchangeRates()
- {
- return $this->_get(self::KEY_EXCHANGE_RATES);
- }
- /**
- * @inheritDoc
- */
- public function setExchangeRates(array $exchangeRates = null)
- {
- return $this->setData(self::KEY_EXCHANGE_RATES, $exchangeRates);
- }
- /**
- * @inheritDoc
- */
- public function getExtensionAttributes()
- {
- return $this->_getExtensionAttributes();
- }
- /**
- * @inheritDoc
- */
- public function setExtensionAttributes(
- \Magento\Directory\Api\Data\CurrencyInformationExtensionInterface $extensionAttributes
- ) {
- return $this->_setExtensionAttributes($extensionAttributes);
- }
- }
|