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