Lines Matching refs:cookieArray
33 * @param array $cookieArray The cookie fields; must contain name and value.
36 public static function createFromArray(array $cookieArray)
38 if (!isset($cookieArray['name'])) {
41 if (!isset($cookieArray['value'])) {
44 $cookie = new self($cookieArray['name'], $cookieArray['value']);
46 if (isset($cookieArray['path'])) {
47 $cookie->setPath($cookieArray['path']);
49 if (isset($cookieArray['domain'])) {
50 $cookie->setDomain($cookieArray['domain']);
52 if (isset($cookieArray['expiry'])) {
53 $cookie->setExpiry($cookieArray['expiry']);
55 if (isset($cookieArray['secure'])) {
56 $cookie->setSecure($cookieArray['secure']);
58 if (isset($cookieArray['httpOnly'])) {
59 $cookie->setHttpOnly($cookieArray['httpOnly']);
61 if (isset($cookieArray['sameSite'])) {
62 $cookie->setSameSite($cookieArray['sameSite']);