src/Console/Commands/SeedCurrencies.php
private function getCurrencySymbol(string $currencyCode, string $locale): string
    {
        $formatter = new NumberFormatter($locale.'@currency='.$currencyCode, NumberFormatter::CURRENCY);

        return $formatter->getSymbol(NumberFormatter::CURRENCY_SYMBOL);
    }
private function getCurrencySymbol(string $currencyCode, string $locale): string
    {
        $formatter = new NumberFormatter($locale.'@currency='.$currencyCode, NumberFormatter::CURRENCY);

        return $formatter->getSymbol(NumberFormatter::CURRENCY_SYMBOL);
    }
private function getCurrencySymbol ( string $ currencyCode , string $ locale ) : string { $ formatter = new NumberFormatter ( $ locale . '@currency=' . $ currencyCode , NumberFormatter :: CURRENCY ) ; return $ formatter -> getSymbol ( NumberFormatter :: CURRENCY_SYMBOL ) ; }
Get the symbol value for the given locale.

@param string $currencyCode
@param string $locale

@return string
Get the symbol value for the given locale .