Zend Framework
3.0
|
Public Member Functions | |
setMetadata ($spec, $value=null) | |
Set message metadata. | |
getMetadata ($key=null, $default=null) | |
Retrieve all metadata or a single metadatum as specified by key. | |
setContent ($value) | |
Set message content. | |
getContent () | |
Get message content. | |
toString () | |
Protected Attributes | |
$metadata = [] | |
$content = '' | |
getContent | ( | ) |
getMetadata | ( | $key = null , |
|
$default = null |
|||
) |
Retrieve all metadata or a single metadatum as specified by key.
null | string | int | $key | |
null | mixed | $default |
Exception\InvalidArgumentException |
setContent | ( | $value | ) |
setMetadata | ( | $spec, | |
$value = null |
|||
) |
Set message metadata.
Non-destructive setting of message metadata; always adds to the metadata, never overwrites the entire metadata container.
string | int | array | Traversable | $spec | |
mixed | $value |
Exception\InvalidArgumentException |
Implements MessageInterface.
toString | ( | ) |
|
protected |
|
protected |