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

getProperties() приватный метод

Gets metadata of a property.
private getProperties ( SimpleXMLElement $resource ) : array
$resource SimpleXMLElement
Результат array
    private function getProperties(\SimpleXMLElement $resource) : array
    {
        $properties = [];
        foreach ($resource->property as $property) {
            $properties[(string) $property['name']] = ['description' => $this->phpize($property, 'description', 'string'), 'readable' => $this->phpize($property, 'readable', 'bool'), 'writable' => $this->phpize($property, 'writable', 'bool'), 'readableLink' => $this->phpize($property, 'readableLink', 'bool'), 'writableLink' => $this->phpize($property, 'writableLink', 'bool'), 'required' => $this->phpize($property, 'required', 'bool'), 'identifier' => $this->phpize($property, 'identifier', 'bool'), 'iri' => $this->phpize($property, 'iri', 'string'), 'attributes' => $this->getAttributes($property, 'attribute')];
        }
        return $properties;
    }