/** * @param $string * @param ICookie $cookie */ private function writeSecure(&$string, ICookie $cookie) { if ($cookie->isSecure()) { $string .= ' secure;'; } }