Cookies
- Full name:
\Qubus\Http\Cookies\Cookies - This class is marked as final and can't be subclassed
- This class is a Final class
Constants
| Constant | Visibility | Type | Value |
|---|---|---|---|
COOKIE_HEADER | public | 'Cookie' |
Properties
cookies
Methods
__construct
Parameters:
| Parameter | Type | Description |
|---|---|---|
$cookies | array|\Qubus\Http\Cookies\CookieCollection[] |
has
Checks if cookie exists.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$name | string | Cookie name. |
get
Retrieve cookie from the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$name | string |
getAll
Returns a CookieCollection.
with
Parameters:
| Parameter | Type | Description |
|---|---|---|
$cookie | \Qubus\Http\Cookies\CookieCollection |
without
Parameters:
| Parameter | Type | Description |
|---|---|---|
$name | string |
renderIntoCookieHeader
Render Cookies into a Request.
public renderIntoCookieHeader(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface
Parameters:
| Parameter | Type | Description |
|---|---|---|
$request | \Psr\Http\Message\RequestInterface |
fromCookieString
Create Cookies from a Cookie header value string.
- This method is static.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$string | string |
fromRequest
Retrieves the cookie string.
- This method is static.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$request | \Psr\Http\Message\RequestInterface |
Automatically generated on 2025-10-13