AbstractMessage
abstract class AbstractMessage implements MessageInterface
Class AbstractMessage
Methods
Returns the value of a header.
Returns a header's attributes.
Returns the value of a particular header attribute.
Returns the current message as a DOMDocument.
Sets all headers on the current message.
Adds a header to this message.
Adds a set of headers to this message.
Returns an array of header lines.
Sets the content of the message.
Returns the content of the message.
Returns the message document.
No description
Details
at line 22
string|array|null
getHeader(string $name, string|boolean $glue = "\r\n")
Returns the value of a header.
at line 47
array
getHeaderAttributes(string $name)
Returns a header's attributes.
at line 74
string|null
getHeaderAttribute(string $header, string $attribute)
Returns the value of a particular header attribute.
at line 88
DOMDocument
toDomDocument()
Returns the current message as a DOMDocument.
at line 104
setHeaders(array $headers)
Sets all headers on the current message.
Headers can be complete ["Header: value"] pairs or an associative array ["Header" => "value"]
at line 109
addHeader(string $header)
Adds a header to this message.
at line 114
addHeaders(array $headers)
Adds a set of headers to this message.
Headers can be complete ["Header: value"] pairs or an associative array ["Header" => "value"]
at line 119
array
getHeaders()
Returns an array of header lines.
at line 124
setContent(string $content)
Sets the content of the message.
at line 129
string
getContent()
Returns the content of the message.
at line 134
string
__toString()
Returns the message document.