public function IndexedReader::getPropertyAnnotations

Get annotations for property

Parameters

\ReflectionProperty $property:

Return value

array

Overrides Reader::getPropertyAnnotations

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/IndexedReader.php, line 108

Class

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

Namespace

Doctrine\Common\Annotations

Code

public function getPropertyAnnotations(\ReflectionProperty $property) {
  $annotations = array();
  foreach ($this->delegate
    ->getPropertyAnnotations($property) as $annot) {
    $annotations[get_class($annot)] = $annot;
  }
  return $annotations;
}