Fully Qualified Name: | Laminas\Stdlib\Response |
Extends: | Message |
Implements: | ResponseInterface |
Name | Description | Defined By |
---|---|---|
getContent() | Get message content | Message |
getMetadata() | Retrieve all metadata or a single metadatum as specified by key | Message |
setContent() | Set message content | Message |
setMetadata() | Set message metadata | Message |
toString() | Message |
Get message content
Returns: mixed
Retrieve all metadata or a single metadatum as specified by key
Parameter Name | Type | Description |
---|---|---|
$key | null|string|int | |
$default | null|mixed |
Returns: mixed
Set message content
Parameter Name | Type | Description |
---|---|---|
$value | mixed |
Returns: \Message
Set message metadata
Non-destructive setting of message metadata; always adds to the metadata, never overwrites the entire metadata container.
Parameter Name | Type | Description |
---|---|---|
$spec | string|int|array|\Traversable | |
$value | mixed |
Returns: \Message
Returns: string