SetCookies
- Full name:
\Qubus\Http\Cookies\SetCookies
- This class is marked as final and can't be subclassed
- This class is a Final class
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
SET_COOKIE_HEADER | public | 'Set-Cookie' |
Properties
setCookies
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$setCookies | \Qubus\Http\Cookies\SetCookieCollection[] |
has
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
get
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
getAll
with
Parameters:
Parameter | Type | Description |
---|---|---|
$setCookie | \Qubus\Http\Cookies\SetCookieCollection |
without
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
renderIntoSetCookieHeader
Render SetCookies into a Response.
public renderIntoSetCookieHeader(\Psr\Http\Message\ResponseInterface $response): \Psr\Http\Message\ResponseInterface
Parameters:
Parameter | Type | Description |
---|---|---|
$response | \Psr\Http\Message\ResponseInterface |
fromSetCookieStrings
Create SetCookies from a collection of SetCookieCollection header value strings.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$setCookieStrings | string[] |
Throws:
fromResponse
Create SetCookies from a Response.
public static fromResponse(\Psr\Http\Message\ResponseInterface $response): \Qubus\Http\Cookies\SetCookies
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$response | \Psr\Http\Message\ResponseInterface |
Automatically generated on 2025-10-13