예제 #1
0
 /**
  * Get the @template annotation value for a particular auto-route callable
  *
  * @param \DocBlock\Element\MethodElement $method
  *
  * @return string
  */
 private function getTemplateAnnotation(MethodElement $method)
 {
     $templateAnnotation = $method->getAnnotation(self::TEMPLATE);
     if (empty($templateAnnotation) || count($templateAnnotation->values) < 1) {
         return null;
     }
     return $templateAnnotation->values[0];
 }