Ejemplo n.º 1
0
 /**
  * Gets the annotations applied to a method.
  *
  * @param ParsedReflectionMethod $method The ReflectionMethod of the method from which
  *                                   the annotations should be read.
  * @return array An array of Annotations.
  */
 public function getMethodAnnotations(ParsedReflectionMethod $method)
 {
     $this->parser->setTarget(Target::TARGET_METHOD);
     return $this->parser->parse($method->getDocComment(), 'method ' . $method->getDeclaringClass()->name . '::' . $method->getName() . '()');
 }