public function AnnotationReader::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 AnnotationReader::getPropertyAnnotations()
- AnnotationReader::getPropertyAnnotation in lib/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationReader.php - Gets a property annotation.
File
- lib/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationReader.php, line 217
Class
- AnnotationReader
- A reader for docblock annotations.
Namespace
Doctrine\Common\AnnotationsCode
public function getPropertyAnnotations(ReflectionProperty $property) {
$class = $property
->getDeclaringClass();
$context = 'property ' . $class
->getName() . "::\$" . $property
->getName();
$this->parser
->setTarget(Target::TARGET_PROPERTY);
$this->parser
->setImports($this
->getPropertyImports($property));
$this->parser
->setIgnoredAnnotationNames($this
->getIgnoredAnnotationNames($class));
return $this->parser
->parse($property
->getDocComment(), $context);
}