function AnnotationReader::getClassAnnotations
Overrides Reader::getClassAnnotations
1 call to AnnotationReader::getClassAnnotations()
- AnnotationReader::getClassAnnotation in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationReader.php - Gets a class annotation.
File
-
vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationReader.php, line 142
Class
- AnnotationReader
- A reader for docblock annotations.
Namespace
Doctrine\Common\AnnotationsCode
public function getClassAnnotations(ReflectionClass $class) {
$this->parser
->setTarget(Target::TARGET_CLASS);
$this->parser
->setImports($this->getImports($class));
$this->parser
->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class));
$this->parser
->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces);
return $this->parser
->parse($class->getDocComment(), 'class ' . $class->getName());
}