method; } /** * @param string $method * @return RequestInterface */ public function withMethod($method): RequestInterface { // TODO: Implement withMethod() method. $this->method = $method; return $this; } /** * @return UriInterface */ public function getUri(): UriInterface { // TODO: Implement getUri() method. return $this->uri; } /** * @param UriInterface $uri * @param false $preserveHost * @return $this|TRequest */ public function withUri(UriInterface $uri, $preserveHost = false): RequestInterface { $this->uri = $uri; return $this; } }