public function SimpleAnnotationReader::getPropertyAnnotations in Plug 7
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 An array of Annotations.
Overrides Reader::getPropertyAnnotations
1 call to SimpleAnnotationReader::getPropertyAnnotations()
- SimpleAnnotationReader::getPropertyAnnotation in lib/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ SimpleAnnotationReader.php - Gets a property annotation.
File
- lib/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ SimpleAnnotationReader.php, line 81
Class
- SimpleAnnotationReader
- Simple Annotation Reader.
Namespace
Doctrine\Common\AnnotationsCode
public function getPropertyAnnotations(\ReflectionProperty $property) {
return $this->parser
->parse($property
->getDocComment(), 'property ' . $property
->getDeclaringClass()->name . '::$' . $property
->getName());
}