Get selected annotation for class
\ReflectionClass $class:
string $annotationName:
null
Overrides Reader::getClassAnnotation
public function getClassAnnotation(\ReflectionClass $class, $annotationName) {
foreach ($this
->getClassAnnotations($class) as $annot) {
if ($annot instanceof $annotationName) {
return $annot;
}
}
return null;
}