Example #1
0
 /**
  * @see \DrestCommon\Request\Adapter\AdapterInterface::getHttpMethod()
  */
 public function getHttpMethod()
 {
     $const = 'METHOD_' . $this->getRequest()->getMethod();
     if (!defined('DrestCommon\\Request\\Request::' . $const)) {
         throw RequestException::unknownHttpVerb(get_class($this));
     }
     return constant('DrestCommon\\Request\\Request::' . $const);
 }