ApiPlatform\Core\Metadata\Extractor\XmlExtractor::phpize PHP Метод

phpize() приватный Метод

Transforms an XML attribute's value in a PHP value.
private phpize ( SimpleXMLElement $array, string $key, string $type ) : boolean | string | null
$array SimpleXMLElement
$key string
$type string
Результат boolean | string | null
    private function phpize(\SimpleXMLElement $array, string $key, string $type)
    {
        if (!isset($array[$key])) {
            return;
        }
        switch ($type) {
            case 'string':
                return (string) $array[$key];
            case 'bool':
                return (bool) XmlUtils::phpize($array[$key]);
        }
    }