lib/Request.php
public function withMethod(string $method): self {
        if ($this->method === $method) {
            return $this;
        }

        $clone = clone $this;
        $clone->method = $method;

        return $clone;
    }
public function withMethod(string $method): self {
        if ($this->method === $method) {
            return $this;
        }

        $clone = clone $this;
        $clone->method = $method;

        return $clone;
    }
public function withMethod ( string $ method ) : self { if ( $ this -> method === $ method ) { return $ this ; } $ clone = clone $ this ; $ clone -> method = $ method ; return $ clone ; }
Specify the request's HTTP method verb.

@param string $method

@return Request
Specify the request s HTTP method verb .