Model
Currency
Magento\Directory\Model\ResourceModel\Currency
What it does
This resource model manages currency data and exchange rates in Magento 2.
Developers use it to retrieve currency conversion rates between different currencies, save new exchange rates to the database, and perform currency conversions.
It provides both one-way (base to allowed) and bidirectional rate lookups with caching for performance.
Public Methods
- getRate()
- getAnyRate()
- saveRates()
- getConfigCurrencies()
- getCurrencyRates()
- _resetState()