protected function getParsedPattern(NumberFormat $numberFormat, $style)
    {
        $locale = $numberFormat->getLocale();
        if (!isset($this->parsedPatterns[$locale][$style])) {
            $availablePatterns = $this->getAvailablePatterns($numberFormat);
            if (!isset($availablePatterns[$style])) {
                throw new InvalidArgumentException(sprintf('Unrecognized style "%s".', $style));
            }

            $this->parsedPatterns[$locale][$style] = new ParsedPattern($availablePatterns[$style]);
        }

        return $this->parsedPatterns[$locale][$style];
    }
protected function getParsedPattern(NumberFormat $numberFormat, $style)
    {
        $locale = $numberFormat->getLocale();
        if (!isset($this->parsedPatterns[$locale][$style])) {
            $availablePatterns = $this->getAvailablePatterns($numberFormat);
            if (!isset($availablePatterns[$style])) {
                throw new InvalidArgumentException(sprintf('Unrecognized style "%s".', $style));
            }

            $this->parsedPatterns[$locale][$style] = new ParsedPattern($availablePatterns[$style]);
        }

        return $this->parsedPatterns[$locale][$style];
    }
protected function getParsedPattern ( NumberFormat $ numberFormat , $ style ) { $ locale = $ numberFormat -> getLocale ( ) ; if ( ! isset ( $ this -> parsedPatterns [ $ locale ] [ $ style ] ) ) { $ availablePatterns = $ this -> getAvailablePatterns ( $ numberFormat ) ; if ( ! isset ( $ availablePatterns [ $ style ] ) ) { throw new InvalidArgumentException ( sprintf ( 'Unrecognized style "%s".' , $ style ) ) ; } $ this -> parsedPatterns [ $ locale ] [ $ style ] = new ParsedPattern ( $ availablePatterns [ $ style ] ) ; } return $ this -> parsedPatterns [ $ locale ] [ $ style ] ; }
Gets the pattern for the provided number format.

@param NumberFormat $numberFormat The number format.
@param string       $style        The formatter style.

@return ParsedPattern
Gets the pattern for the provided number format .