CookieCollection
- Full name:
\Qubus\Http\Cookies\CookieCollection
- This class is marked as final and can't be subclassed
- This class is a Final class
Properties
name
value
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | ?string |
getName
Get cookie name.
getValue
Get cookie value.
withValue
Sets cookie value
Parameters:
Parameter | Type | Description |
---|---|---|
$value | ?string |
__toString
Render Cookie as a string.
create
Create a cookie.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | Cookie name. |
$value | string|null | Cookie value. |
listFromCookieString
Create a list of Cookies from a Cookie header value string.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$string | string |
oneFromCookiePair
Create one Cookie from a cookie key/value header value string.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$string | string |
Automatically generated on 2025-10-13