Class Response

Summary

Fully Qualified Name: Zend\Stdlib\Response
Extends: Message
Implements: ResponseInterface

Description

Methods

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

Method Details

getContent()

Get message content

Returns: mixed

getMetadata()

Retrieve all metadata or a single metadatum as specified by key

Parameter Name Type Description
$key null|string|int
$default null|mixed

Returns: mixed

setContent()

Set message content

Parameter Name Type Description
$value mixed

Returns: \Message

setMetadata()

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

toString()

Returns: string

Top