public function withQuery(string $query = null) : Uri { $new = clone $this; $new->query = $new->parseQuery($query); return $new; }