function SimpleAnnotationReader::getPropertyAnnotations
Gets the annotations applied to a property.
Parameters
ReflectionProperty $property The ReflectionProperty of the property: from which the annotations should be read.
Return value
array<object> An array of Annotations.
1 call to SimpleAnnotationReader::getPropertyAnnotations()
- SimpleAnnotationReader::getPropertyAnnotation in core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ SimpleAnnotationReader.php - Gets a property annotation.
File
-
core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ SimpleAnnotationReader.php, line 128
Class
- SimpleAnnotationReader
- Simple Annotation Reader.
Namespace
Drupal\Component\Annotation\DoctrineCode
public function getPropertyAnnotations(\ReflectionProperty $property) {
return $this->parser
->parse($property->getDocComment(), 'property ' . $property->getDeclaringClass()->name . '::$' . $property->getName());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.