public function AnnotationReader::getClassAnnotations in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php \Doctrine\Common\Annotations\AnnotationReader::getClassAnnotations()
Gets the annotations applied to a class.
Parameters
\ReflectionClass $class The ReflectionClass of the class from which: the class annotations should be read.
Return value
array An array of Annotations.
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 189
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
->getClassImports($class));
$this->parser
->setIgnoredAnnotationNames($this
->getIgnoredAnnotationNames($class));
return $this->parser
->parse($class
->getDocComment(), 'class ' . $class
->getName());
}