protected function getNumberFormat($locale)
    {
        if (!isset($this->numberFormats[$locale])) {
            $this->numberFormats[$locale] = $this->numberFormatRepository->get($locale);
        }

        return $this->numberFormats[$locale];
    }
protected function getNumberFormat($locale)
    {
        if (!isset($this->numberFormats[$locale])) {
            $this->numberFormats[$locale] = $this->numberFormatRepository->get($locale);
        }

        return $this->numberFormats[$locale];
    }
protected function getNumberFormat ( $ locale ) { if ( ! isset ( $ this -> numberFormats [ $ locale ] ) ) { $ this -> numberFormats [ $ locale ] = $ this -> numberFormatRepository -> get ( $ locale ) ; } return $ this -> numberFormats [ $ locale ] ; }
Gets the number format for the provided locale.

@param string $locale The locale.

@return NumberFormat
Gets the number format for the provided locale .