Gets the annotations applied to a class.
ReflectionClass $class The ReflectionClass of the class from which: the class annotations should be read.
array An array of Annotations.
Overrides Reader::getClassAnnotations
public function getClassAnnotations(ReflectionClass $class) {
$this->parser
->setTarget(Target::TARGET_CLASS);
$this->parser
->setImports($this
->getImports($class));
$this->parser
->setIgnoredAnnotationNames($this
->getIgnoredAnnotationNames($class));
return $this->parser
->parse($class
->getDocComment(), 'class ' . $class
->getName());
}