Gets a class annotation.
\ReflectionClass $class The ReflectionClass of the class from which: the class annotations should be read.
string $annotationName The name of the annotation.:
mixed The Annotation or NULL, if the requested annotation does not exist.
Overrides Reader::getClassAnnotation
public function getClassAnnotation(\ReflectionClass $class, $annotationName) {
foreach ($this
->getClassAnnotations($class) as $annot) {
if ($annot instanceof $annotationName) {
return $annot;
}
}
return null;
}