protected function parseConstantValue($attribute)
    {
        $attribute = strtoupper($attribute);
        $constantName = 'NumberFormatter::'.$attribute;

        if (!\defined($constantName)) {
            throw new \InvalidArgumentException(sprintf('NumberFormatter has no constant "%s".', $attribute));
        }

        return \constant($constantName);
    }
protected function parseConstantValue($attribute)
    {
        $attribute = strtoupper($attribute);
        $constantName = 'NumberFormatter::'.$attribute;

        if (!\defined($constantName)) {
            throw new \InvalidArgumentException(sprintf('NumberFormatter has no constant "%s".', $attribute));
        }

        return \constant($constantName);
    }
protected function parseConstantValue ( $ attribute ) { $ attribute = strtoupper ( $ attribute ) ; $ constantName = 'NumberFormatter::' . $ attribute ; if ( ! \ defined ( $ constantName ) ) { throw new \ InvalidArgumentException ( sprintf ( 'NumberFormatter has no constant "%s".' , $ attribute ) ) ; } return \ constant ( $ constantName ) ; }
Parse the given value trying to get a match with a \NumberFormatter constant.

@param string $attribute The constant's name

@throws \InvalidArgumentException If the value does not match any constant

@return mixed The \NumberFormatter constant
Parse the given value trying to get a match with a \ NumberFormatter constant .