public function getMethod()
    {
        if (!$this->method) {
            if (isset($_SERVER['REQUEST_METHOD'])) {
                $this->method = strtoupper($_SERVER['REQUEST_METHOD']);
            }
        }

        return $this->method;
    }
public function getMethod()
    {
        if (!$this->method) {
            if (isset($_SERVER['REQUEST_METHOD'])) {
                $this->method = strtoupper($_SERVER['REQUEST_METHOD']);
            }
        }

        return $this->method;
    }
public function getMethod ( ) { if ( ! $ this -> method ) { if ( isset ( $ _SERVER [ 'REQUEST_METHOD' ] ) ) { $ this -> method = strtoupper ( $ _SERVER [ 'REQUEST_METHOD' ] ) ; } } return $ this -> method ; }
Gets the request method.

@return  string   The request method.

@since   2.0
Gets the request method .