Drahak\Restful\Application\Routes\ResourceRoute::getMethod PHP Method

getMethod() public method

Get request method flag
public getMethod ( Nette\Http\IRequest $httpRequest ) : string | null
$httpRequest Nette\Http\IRequest
return string | null
    public function getMethod(Http\IRequest $httpRequest)
    {
        $method = $httpRequest->getMethod();
        if (!isset($this->methodDictionary[$method])) {
            return NULL;
        }
        return $this->methodDictionary[$method];
    }