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