You are here

public function IndexedReader::getPropertyAnnotation in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php \Doctrine\Common\Annotations\IndexedReader::getPropertyAnnotation()

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.

Overrides Reader::getPropertyAnnotation

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php, line 102

Class

IndexedReader
Allows the reader to be used in-place of Doctrine's reader.

Namespace

Doctrine\Common\Annotations

Code

public function getPropertyAnnotation(\ReflectionProperty $property, $annotation) {
  return $this->delegate
    ->getPropertyAnnotation($property, $annotation);
}