Gets a property annotation.
\ReflectionProperty $property:
string $annotationName The name of the annotation.:
mixed The Annotation or NULL, if the requested annotation does not exist.
Overrides Reader::getPropertyAnnotation
public function getPropertyAnnotation(\ReflectionProperty $property, $annotationName) {
foreach ($this
->getPropertyAnnotations($property) as $annot) {
if ($annot instanceof $annotationName) {
return $annot;
}
}
return null;
}