public function withProtocolVersion($version) { $new = clone $this; $new->protocol = $version; return $new; }