function SetCookie::setDomain
Set the domain of the cookie.
Parameters
string|null $domain:
1 call to SetCookie::setDomain()
- SetCookie::__construct in vendor/
guzzlehttp/ guzzle/ src/ Cookie/ SetCookie.php
File
-
vendor/
guzzlehttp/ guzzle/ src/ Cookie/ SetCookie.php, line 219
Class
- SetCookie
- Set-Cookie object
Namespace
GuzzleHttp\CookieCode
public function setDomain($domain) : void {
if (!is_string($domain) && null !== $domain) {
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
}
$this->data['Domain'] = null === $domain ? null : (string) $domain;
}