public function IndexedReader::getMethodAnnotations

Get Annotations for method

Parameters

\ReflectionMethod $method:

Return value

array

Overrides Reader::getMethodAnnotations

File

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

Class

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

Namespace

Doctrine\Common\Annotations

Code

public function getMethodAnnotations(\ReflectionMethod $method) {
  $annotations = array();
  foreach ($this->delegate
    ->getMethodAnnotations($method) as $annot) {
    $annotations[get_class($annot)] = $annot;
  }
  return $annotations;
}