Пример #1
0
 /**
  * @param Method $method
  * @param Query $annotation
  * @return null
  */
 public function handle(Method $method, $annotation)
 {
     $method->addQueries([$annotation->getKey() => $annotation->getValue()]);
 }
Пример #2
0
 /**
  * @param Method $method
  * @param HttpRequest $annotation
  * @return null
  */
 public function handle(Method $method, $annotation)
 {
     $method->setType($annotation->getType());
     $method->setPath($annotation->getPath());
     $method->addQueries($annotation->getQueries());
 }