Get selected method annotation
\ReflectionMethod $method:
string $annotationName:
null
Overrides Reader::getMethodAnnotation
public function getMethodAnnotation(\ReflectionMethod $method, $annotationName) {
foreach ($this
->getMethodAnnotations($method) as $annot) {
if ($annot instanceof $annotationName) {
return $annot;
}
}
return null;
}