/** * @param Method $method * @param Query $annotation * @return null */ public function handle(Method $method, $annotation) { $method->addQueries([$annotation->getKey() => $annotation->getValue()]); }
/** * @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()); }