protected function parseAttributes(array $attributes)
    {
        $result = [];

        foreach ($attributes as $attribute => $value) {
            $result[$this->parseConstantValue($attribute)] = $value;
        }

        return $result;
    }
protected function parseAttributes(array $attributes)
    {
        $result = [];

        foreach ($attributes as $attribute => $value) {
            $result[$this->parseConstantValue($attribute)] = $value;
        }

        return $result;
    }
protected function parseAttributes ( array $ attributes ) { $ result = [ ] ; foreach ( $ attributes as $ attribute => $ value ) { $ result [ $ this -> parseConstantValue ( $ attribute ) ] = $ value ; } return $ result ; }
Converts keys of attributes array to values of \NumberFormatter constants.

@param array $attributes The list of attributes

@throws \InvalidArgumentException If any attribute does not match any constant

@return array List of \NumberFormatter constants
Converts keys of attributes array to values of \ NumberFormatter constants .