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

isMethod() public method

Is this route mapped to given method
public isMethod ( integer $method ) : boolean
$method integer
return boolean
    public function isMethod($method)
    {
        $common = array(self::CRUD, self::RESTFUL);
        $isActionDefined = $this->actionDictionary && !in_array($method, $common) ? isset($this->actionDictionary[$method]) : TRUE;
        return ($this->getFlags() & $method) == $method && $isActionDefined;
    }