diff --git a/docs/book/client/cookies.md b/docs/book/client/cookies.md index f573cefb..cc9e2e2f 100644 --- a/docs/book/client/cookies.md +++ b/docs/book/client/cookies.md @@ -102,10 +102,10 @@ Besides the methods demonstrated in the examples, `Laminas\Http\Cookies` defines Method signature | Description ------------------------------------------------------------------- | ----------- `static fromResponse(Response $response, string $refUri) : Cookies` | Create a `Cookies` instance from a response and the request URI. Parses all `Set-Cookie` headers, maps them to the URI, and aggregates them. -`addCookie(string|SetCookie $cookie, string $refUri = null) : void` | Add a cookie, mapping it to the given URI. If no URI is provided, it will be inferred from the cookie value's domain and path. +`addCookie(string\|SetCookie $cookie, string $refUri = null) : void` | Add a cookie, mapping it to the given URI. If no URI is provided, it will be inferred from the cookie value's domain and path. `addCookiesFromResponse(Response $response, string $refUri) : void` | Add all `Set-Cookie` values from the provided response, mapping to the given URI. -`getAllCookies(int $retAs = self::COOKIE_OBJECT) : array|string` | Retrieve all cookies. Returned array will have either `SetCookie` instances (the default), strings for each `Set-Cookie` declaration, or a single string containing all declarations, based on the `COOKIE_*` constant used. -`getCookie(/* ... */) : string|SetCookie` | Retrieve a single cookie by name for the given URI. See below for argument details. +`getAllCookies(int $retAs = self::COOKIE_OBJECT) : array\|string` | Retrieve all cookies. Returned array will have either `SetCookie` instances (the default), strings for each `Set-Cookie` declaration, or a single string containing all declarations, based on the `COOKIE_*` constant used. +`getCookie(/*...*/) : string\|SetCookie` | Retrieve a single cookie by name for the given URI. See below for argument details. `getMatchingCookies(/* ... */) : array` | See below for details. `isEmpty() : bool` | Whether or not the instance aggregates any cookies currently. `reset() : void` | Clear all aggregated cookies from the instance. diff --git a/docs/book/request.md b/docs/book/request.md index 1e8eaf5e..e391a013 100644 --- a/docs/book/request.md +++ b/docs/book/request.md @@ -174,4 +174,4 @@ HeaderField2: header-field-value2 foo=bar */ -``` \ No newline at end of file +``` diff --git a/docs/book/response.md b/docs/book/response.md index 86265093..241ad9e5 100644 --- a/docs/book/response.md +++ b/docs/book/response.md @@ -94,8 +94,8 @@ Method signature | Descrip `decodeChunkedBody(string $body) : string` | Decode a "chunked" transfer-encoded body and return the decoded text. `decodeGzip(string $body) : string` | Decode a gzip encoded message (when `Content-Encoding` indicates gzip). Currently requires PHP with zlib support. `decodeDeflate(string $body) : string` | Decode a zlib deflated message (when `Content-Encoding` indicates deflate). Currently requires PHP with zlib support. -`setMetadata(string|int|array|Traversable $spec, mixed $value) : self` | Non-destructive setting of message metadata; always adds to the metadata, never overwrites the entire metadata container. -`getMetadata(null|string|int $key, null|mixed $default) : mixed` | Retrieve all metadata or a single metadatum as specified by key. +`setMetadata(string\|int\|array\|Traversable $spec, mixed $value) : self` | Non-destructive setting of message metadata; always adds to the metadata, never overwrites the entire metadata container. +`getMetadata(null\|string\|int $key, null\|mixed $default) : mixed` | Retrieve all metadata or a single metadatum as specified by key. `setContent(mixed $value) : self` | Set message content. `getContent() : mixed` | Get raw message content. `getBody() : mixed` | Get decoded message content.