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;
}