function SetCookie::setDiscard
Set whether or not this is a session cookie.
Parameters
bool $discard Set to true or false if this is a session cookie:
1 call to SetCookie::setDiscard()
- SetCookie::__construct in vendor/
guzzlehttp/ guzzle/ src/ Cookie/ SetCookie.php
File
-
vendor/
guzzlehttp/ guzzle/ src/ Cookie/ SetCookie.php, line 339
Class
- SetCookie
- Set-Cookie object
Namespace
GuzzleHttp\CookieCode
public function setDiscard($discard) : void {
if (!is_bool($discard)) {
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
}
$this->data['Discard'] = (bool) $discard;
}