public function getMethod()
    {
        $fakeMethod = $this->params['_method'];

        if ($fakeMethod) {
            if (in_array($fakeMethod, $this->acceptedMethods)) {
                return $fakeMethod;
            }

            throw new Exceptions\InvalidRequestMethodException(
                "'$fakeMethod' is not a valid request method"
            );
        }

        return  $this->environment['REQUEST_METHOD'];
    }
public function getMethod()
    {
        $fakeMethod = $this->params['_method'];

        if ($fakeMethod) {
            if (in_array($fakeMethod, $this->acceptedMethods)) {
                return $fakeMethod;
            }

            throw new Exceptions\InvalidRequestMethodException(
                "'$fakeMethod' is not a valid request method"
            );
        }

        return  $this->environment['REQUEST_METHOD'];
    }
public function getMethod ( ) { $ fakeMethod = $ this -> params [ '_method' ] ; if ( $ fakeMethod ) { if ( in_array ( $ fakeMethod , $ this -> acceptedMethods ) ) { return $ fakeMethod ; } throw new Exceptions \ InvalidRequestMethodException ( "'$fakeMethod' is not a valid request method" ) ; } return $ this -> environment [ 'REQUEST_METHOD' ] ; }
Get the request method
@return string
Get the request method