public function IndexedReader::getClassAnnotations

Get Annotations for class

Parameters

\ReflectionClass $class:

Return value

array

Overrides Reader::getClassAnnotations

File

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

Class

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

Namespace

Doctrine\Common\Annotations

Code

public function getClassAnnotations(\ReflectionClass $class) {
  $annotations = array();
  foreach ($this->delegate
    ->getClassAnnotations($class) as $annot) {
    $annotations[get_class($annot)] = $annot;
  }
  return $annotations;
}