/** * @param $string * @param ICookie $cookie */ private function writeExpires(&$string, ICookie $cookie) { if ($cookie->hasMaxAge()) { $string .= s(' expires=%s;', $cookie->getExpiresDate()); $string .= s(' max-age=%s;', $cookie->getMaxAge()); } }