You are here

function Reader::getClassAnnotation in Plug 7

Gets a class annotation.

Parameters

\ReflectionClass $class The ReflectionClass of the class from which: the class annotations should be read.

string $annotationName The name of the annotation.:

Return value

object|null The Annotation or NULL, if the requested annotation does not exist.

5 methods override Reader::getClassAnnotation()
AnnotationReader::getClassAnnotation in lib/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php
Gets a class annotation.
CachedReader::getClassAnnotation in lib/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php
Gets a class annotation.
FileCacheReader::getClassAnnotation in lib/doctrine/annotations/lib/Doctrine/Common/Annotations/FileCacheReader.php
Gets a class annotation.
IndexedReader::getClassAnnotation in lib/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php
Gets a class annotation.
SimpleAnnotationReader::getClassAnnotation in lib/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php
Gets a class annotation.

File

lib/doctrine/annotations/lib/Doctrine/Common/Annotations/Reader.php, line 48

Class

Reader
Interface for annotation readers.

Namespace

Doctrine\Common\Annotations

Code

function getClassAnnotation(\ReflectionClass $class, $annotationName);