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