public function __construct($cookieDomain, $cookieKey, DateTime $cookieExpirationDate = null, $cookieSecure = false, $cookieHttpOnly = true) { Assert::string($cookieDomain, 'Cookie domain "%s" expected to be string, type %s given.'); Assert::string($cookieKey, 'Cookie key "%s" expected to be string, type %s given.'); Assert::boolean($cookieSecure, 'Cookie secure setting "%s" is expected to be boolean.'); Assert::boolean($cookieHttpOnly, 'Cookie HttpOnly setting "%s" expected to be boolean'); $this->cookieDomain = $cookieDomain; $this->cookieKey = $cookieKey; $this->cookieExpirationDate = $cookieExpirationDate; $this->cookieSecure = $cookieSecure; $this->cookieHttpOnly = $cookieHttpOnly; }