Gets the annotations applied to a property.
ReflectionProperty $property The ReflectionProperty of the property: from which the annotations should be read.
array An array of Annotations.
Overrides Reader::getPropertyAnnotations
public function getPropertyAnnotations(ReflectionProperty $property) {
$class = $property
->getDeclaringClass();
$context = 'property ' . $class
->getName() . "::\$" . $property
->getName();
$this->parser
->setTarget(Target::TARGET_PROPERTY);
$this->parser
->setImports($this
->getImports($class));
$this->parser
->setIgnoredAnnotationNames($this
->getIgnoredAnnotationNames($class));
return $this->parser
->parse($property
->getDocComment(), $context);
}