@@ -92,7 +92,8 @@ function df_currency($c = null) {
9292 * Добавил возможность передачи в качестве $scope массива из 2-х элементов: [Scope Type, Scope Code].
9393 * Это стало ответом на удаление из ядра класса \Magento\Framework\App\Config\ScopePool
9494 * в Magento CE 2.1.3: https://github.com/magento/magento2/commit/3660d012
95- *
95+ * @used-by \Df\Payment\Currency::rateToPayment()
96+ * @used-by \Df\Payment\Currency::toBase()
9697 * @param null|string|int|ScopeA|Store|ConfigData|IConfigData|O|Q|array(int|string) $s [optional]
9798 * @return C
9899 */
@@ -102,6 +103,8 @@ function df_currency_base($s = null) {return df_currency(df_assert_sne(df_cfg(
102103
103104/**
104105 * 2016-09-05
106+ * @used-by \Df\Directory\FormElement\Currency::map()
107+ * @used-by \Df\Payment\Currency::fromBase()
105108 * @param null|string|int|ScopeA|Store|ConfigData|IConfigData $s [optional]
106109 * @return string
107110 */
@@ -143,6 +146,8 @@ function df_currency_code($c = null) {return df_currency($c)->getCode();}
143146 * @uses \Magento\Directory\Model\Currency::convert() прекрасно понимает нулевой $to:
144147 * https://github.com/magento/magento2/blob/2.1.1/app/code/Magento/Directory/Model/Currency.php#L216-L217
145148 *
149+ * @used-by \Df\Payment\Currency::toBase()
150+ * @used-by \Df\Payment\Currency::toOrder()
146151 * @param float $a
147152 * @param C|string|null $from [optional]
148153 * @param C|string|null $to [optional]
@@ -203,6 +208,7 @@ function df_currency_current($s = null) {return df_store($s)->getCurrentCurrency
203208 * В отличие от @see df_currency_base_с() здесь мы вынуждены использовать не $scope, а $store,
204209 * потому что учётную валюту можно просто считать из настроек,
205210 * а текущая валюта может меняться динамически (в том числе посетителем магазина и сессией).
211+ * @used-by \Df\Directory\FormElement\Currency::map()
206212 * @param int|string|null|bool|StoreInterface $s [optional]
207213 * @return string
208214 */
@@ -221,6 +227,7 @@ function df_currency_has_rate($iso3, $s = null) {return !!dfa(df_currencies_ctn(
221227/**
222228 * 2016-06-30
223229 * «How to programmatically get a currency's name by its ISO code?» https://mage2.pro/t/1833
230+ * @used-by \Df\Payment\ConfigProvider::config()
224231 * @param string|C|string[]|C[]|null $c [optional]
225232 * @return string|string[]
226233 */
0 commit comments