You are here

public function SimpleAnnotationReader::getPropertyAnnotations in Zircon Profile 8

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

Gets the annotations applied to a property.

Parameters

\ReflectionProperty $property The ReflectionProperty of the property: from which the annotations should be read.

Return value

array An array of Annotations.

Overrides Reader::getPropertyAnnotations

1 call to SimpleAnnotationReader::getPropertyAnnotations()
SimpleAnnotationReader::getPropertyAnnotation in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php
Gets a property annotation.

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php, line 81

Class

SimpleAnnotationReader
Simple Annotation Reader.

Namespace

Doctrine\Common\Annotations

Code

public function getPropertyAnnotations(\ReflectionProperty $property) {
  return $this->parser
    ->parse($property
    ->getDocComment(), 'property ' . $property
    ->getDeclaringClass()->name . '::$' . $property
    ->getName());
}