You are here

function Reader::getPropertyAnnotation in Plug 7

Gets a property annotation.

Parameters

\ReflectionProperty $property The ReflectionProperty to read the annotations from.:

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::getPropertyAnnotation()
AnnotationReader::getPropertyAnnotation in lib/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php
Gets a property annotation.
CachedReader::getPropertyAnnotation in lib/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php
Gets a property annotation.
FileCacheReader::getPropertyAnnotation in lib/doctrine/annotations/lib/Doctrine/Common/Annotations/FileCacheReader.php
Gets a property annotation.
IndexedReader::getPropertyAnnotation in lib/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php
Gets a property annotation.
SimpleAnnotationReader::getPropertyAnnotation in lib/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php
Gets a property annotation.

File

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

Class

Reader
Interface for annotation readers.

Namespace

Doctrine\Common\Annotations

Code

function getPropertyAnnotation(\ReflectionProperty $property, $annotationName);