Get selected annotation for property
\ReflectionProperty $property:
string $annotationName:
null
Overrides Reader::getPropertyAnnotation
public function getPropertyAnnotation(\ReflectionProperty $property, $annotationName) {
foreach ($this
->getPropertyAnnotations($property) as $annot) {
if ($annot instanceof $annotationName) {
return $annot;
}
}
return null;
}