src/Domain/Value/Money/LocaleFormatter.php
public static function fromLocale(string $locale): LocaleFormatter
    {
        $formatter = new NumberFormatter((string) $locale, NumberFormatter::CURRENCY);

        return new self($formatter);
    }
public static function fromLocale(string $locale): LocaleFormatter
    {
        $formatter = new NumberFormatter((string) $locale, NumberFormatter::CURRENCY);

        return new self($formatter);
    }
public static function fromLocale ( string $ locale ) : LocaleFormatter { $ formatter = new NumberFormatter ( ( string ) $ locale , NumberFormatter :: CURRENCY ) ; return new self ( $ formatter ) ; }
Creates instance from a locale string

@param string $locale The locale string

@return LocaleFormatter
Creates instance from a locale string