public function setMethod($method = null)
    {
        if ($method === null) {
            $method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : null;
        }

        $this->method = $method;
    }
public function setMethod($method = null)
    {
        if ($method === null) {
            $method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : null;
        }

        $this->method = $method;
    }
public function setMethod ( $ method = null ) { if ( $ method === null ) { $ method = isset ( $ _SERVER [ 'REQUEST_METHOD' ] ) ? $ _SERVER [ 'REQUEST_METHOD' ] : null ; } $ this -> method = $ method ; }
Sets the HTTP method of the request. If the provided value is null, it is automatically detected from the
environment.
@param string $method
Sets the HTTP method of the request . If the provided value is null it is automatically detected from the environment .