PHP Class ApiPlatform\Core\Metadata\Extractor\XmlExtractor

Author: Kévin Dunglas ([email protected])
Author: Antoine Bluchet ([email protected])
Author: Baptiste Meyer ([email protected])
Inheritance: extends AbstractExtractor
Show file Open project: api-platform/core

Protected Methods

Method Description
extractPath ( string $path )

Private Methods

Method Description
getAttributes ( SimpleXMLElement $resource, string $elementName ) : array Recursively transforms an attribute structure into an associative array.
getProperties ( SimpleXMLElement $resource ) : array Gets metadata of a property.
phpize ( SimpleXMLElement $array, string $key, string $type ) : boolean | string | null Transforms an XML attribute's value in a PHP value.

Method Details

extractPath() protected method

protected extractPath ( string $path )
$path string