HEX
Server: Apache
System: Linux webm019.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: petsclubcc (68997)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/petsclubcc/magento/vendor/magento/module-directory/Model/Data/ExchangeRate.php
<?php
/**
 * Data Model implementing the Address interface
 *
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Directory\Model\Data;

/**
 * Class Exchange Rate
 *
 * @codeCoverageIgnore
 */
class ExchangeRate extends \Magento\Framework\Api\AbstractExtensibleObject implements
    \Magento\Directory\Api\Data\ExchangeRateInterface
{
    const KEY_CURRENCY_TO = 'currency_to';
    const KEY_RATE = 'rate';

    /**
     * @inheritDoc
     */
    public function getCurrencyTo()
    {
        return $this->_get(self::KEY_CURRENCY_TO);
    }

    /**
     * @inheritDoc
     */
    public function setCurrencyTo($code)
    {
        return $this->setData(self::KEY_CURRENCY_TO, $code);
    }

    /**
     * @inheritDoc
     */
    public function getRate()
    {
        return $this->_get(self::KEY_RATE);
    }

    /**
     * @inheritDoc
     */
    public function setRate($rate)
    {
        return $this->setData(self::KEY_RATE, $rate);
    }

    /**
     * @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\ExchangeRateExtensionInterface $extensionAttributes
    ) {
        return $this->_setExtensionAttributes($extensionAttributes);
    }
}