Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-directory
Model
Data
ExchangeRate.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Directory\Model\Data
;
9
15
class
ExchangeRate
extends
\Magento\Framework\Api\AbstractExtensibleObject
implements
16
\Magento\Directory\Api\Data\ExchangeRateInterface
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
}
Magento\Directory\Model\Data
Definition:
CountryInformation.php:7
Magento\Framework\Api\AbstractExtensibleObject\_setExtensionAttributes
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
Definition:
AbstractExtensibleObject.php:190
Magento\Directory\Model\Data\ExchangeRate\setRate
setRate($rate)
Definition:
ExchangeRate.php:48
Magento\Directory\Model\Data\ExchangeRate\getCurrencyTo
getCurrencyTo()
Definition:
ExchangeRate.php:24
Magento\Directory\Model\Data\ExchangeRate\getRate
getRate()
Definition:
ExchangeRate.php:40
$rate
$rate
Definition:
quote_with_check_payment.php:11
Magento\Framework\Api\AbstractSimpleObject\_get
_get($key)
Definition:
AbstractSimpleObject.php:35
Magento\Directory\Api\Data\ExchangeRateInterface
Definition:
ExchangeRateInterface.php:14
$extensionAttributes
$extensionAttributes
Definition:
payment.php:22
Magento
Magento\Directory\Model\Data\ExchangeRate\setExtensionAttributes
setExtensionAttributes(\Magento\Directory\Api\Data\ExchangeRateExtensionInterface $extensionAttributes)
Definition:
ExchangeRate.php:80
Magento\Directory\Model\Data\ExchangeRate
Definition:
ExchangeRate.php:15
Magento\Directory\Model\Data\ExchangeRate\getExtensionAttributes
getExtensionAttributes()
Definition:
ExchangeRate.php:72
Magento\Framework\Api\AbstractSimpleObject\setData
setData($key, $value)
Definition:
AbstractSimpleObject.php:47
Magento\Directory\Model\Data\ExchangeRate\KEY_RATE
const KEY_RATE
Definition:
ExchangeRate.php:19
Magento\Directory\Model\Data\ExchangeRate\setCurrencyTo
setCurrencyTo($code)
Definition:
ExchangeRate.php:32
Magento\Directory\Model\Data\ExchangeRate\getExchangeRates
getExchangeRates()
Definition:
ExchangeRate.php:56
Magento\Directory\Model\Data\ExchangeRate\setExchangeRates
setExchangeRates(array $exchangeRates=null)
Definition:
ExchangeRate.php:64
Magento\Framework\Api\AbstractExtensibleObject\_getExtensionAttributes
_getExtensionAttributes()
Definition:
AbstractExtensibleObject.php:164
$code
$code
Definition:
info.phtml:12
Magento\Directory\Model\Data\ExchangeRate\KEY_CURRENCY_TO
const KEY_CURRENCY_TO
Definition:
ExchangeRate.php:18
Magento\Framework\Api\AbstractExtensibleObject
Definition:
AbstractExtensibleObject.php:17