protected function matchMethods($method)
    {
        if (empty($this->methods)) {
            return true;
        }
        if (in_array($method, $this->methods)) {
            return true;
        }

        return false;
    }
protected function matchMethods($method)
    {
        if (empty($this->methods)) {
            return true;
        }
        if (in_array($method, $this->methods)) {
            return true;
        }

        return false;
    }
protected function matchMethods ( $ method ) { if ( empty ( $ this -> methods ) ) { return true ; } if ( in_array ( $ method , $ this -> methods ) ) { return true ; } return false ; }
Returns true if request matches methods or if no methods restrictions set

@param string $method

@return bool
Returns true if request matches methods or if no methods restrictions set