You are here

public function SimpleAnnotationReader::getMethodAnnotations in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php \Doctrine\Common\Annotations\SimpleAnnotationReader::getMethodAnnotations()

Gets the annotations applied to a method.

Parameters

\ReflectionMethod $method The ReflectionMethod of the method from which: the annotations should be read.

Return value

array An array of Annotations.

Overrides Reader::getMethodAnnotations

1 call to SimpleAnnotationReader::getMethodAnnotations()
SimpleAnnotationReader::getMethodAnnotation in modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php
Gets a method annotation.

File

modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php, line 73

Class

SimpleAnnotationReader
Simple Annotation Reader.

Namespace

Doctrine\Common\Annotations

Code

public function getMethodAnnotations(\ReflectionMethod $method) {
  return $this->parser
    ->parse($method
    ->getDocComment(), 'method ' . $method
    ->getDeclaringClass()->name . '::' . $method
    ->getName() . '()');
}