src/Metadata/Extractor/XmlExtractor.php
private function phpize(\SimpleXMLElement $array, string $key, string $type)
    {
        if (!isset($array[$key])) {
            return null;
        }

        switch ($type) {
            case 'string':
                return (string) $array[$key];
            case 'integer':
                return (int) $array[$key];
            case 'bool':
                return (bool) XmlUtils::phpize($array[$key]);
        }

        return null;
    }
private function phpize(\SimpleXMLElement $array, string $key, string $type)
    {
        if (!isset($array[$key])) {
            return null;
        }

        switch ($type) {
            case 'string':
                return (string) $array[$key];
            case 'integer':
                return (int) $array[$key];
            case 'bool':
                return (bool) XmlUtils::phpize($array[$key]);
        }

        return null;
    }
private function phpize ( \ SimpleXMLElement $ array , string $ key , string $ type ) { if ( ! isset ( $ array [ $ key ] ) ) { return null ; } switch ( $ type ) { case 'string' : return ( string ) $ array [ $ key ] ; case 'integer' : return ( int ) $ array [ $ key ] ; case 'bool' : return ( bool ) XmlUtils :: phpize ( $ array [ $ key ] ) ; } return null ; }
Transforms an XML attribute's value in a PHP value.

@return string|int|bool|null
Transforms an XML attribute s value in a PHP value .