TMessage
Tags
Table of Contents
Properties
- $body : string|null
- The body of the message. String if it has been set, null otherwise
- $headers : array<string|int, mixed>
Methods
- getBody() : string
- getHeader() : string|null
- Gets a particular header value by a provided header name
- getHeaders() : array<string|int, mixed>
- setBody() : mixed
- setHeader() : mixed
Properties
$body
The body of the message. String if it has been set, null otherwise
protected
string|null
$body
= ''
$headers
protected
array<string|int, mixed>
$headers
= []
Methods
getBody()
public
getBody() : string
Return values
stringgetHeader()
Gets a particular header value by a provided header name
public
getHeader(string $header) : string|null
Parameters
- $header : string
Return values
string|nullgetHeaders()
public
getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>setBody()
public
setBody(string $body) : mixed
Parameters
- $body : string
setHeader()
public
setHeader(string $name, string $value) : mixed
Parameters
- $name : string
- $value : string