function Reader::getClassAnnotation
Gets a class annotation.
@template T
Parameters
ReflectionClass $class The ReflectionClass of the class from which: the class annotations should be read.
class-string<T> $annotationName The name of the annotation.:
Return value
T|null The Annotation or NULL, if the requested annotation does not exist.
4 methods override Reader::getClassAnnotation()
- AnnotationReader::getClassAnnotation in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationReader.php - Gets a class annotation.
- IndexedReader::getClassAnnotation in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ IndexedReader.php - Gets a class annotation.
- PsrCachedReader::getClassAnnotation in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ PsrCachedReader.php - Gets a class annotation.
- SimpleAnnotationReader::getClassAnnotation in core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ SimpleAnnotationReader.php - Gets a class annotation.
File
-
vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ Reader.php, line 35
Class
- Reader
- Interface for annotation readers.
Namespace
Doctrine\Common\AnnotationsCode
public function getClassAnnotation(ReflectionClass $class, $annotationName);