/** * @param $string * @param ICookie $cookie */ private function writeDomain(&$string, ICookie $cookie) { if ($cookie->hasDomain()) { $string .= s(' domain=%s;', $cookie->getDomain()); } }