public function 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 drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php
Gets a property annotation.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php, line 96

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());
}