Documentation

TMessage

Tags
author

Ramone Burrell ramone@ramoneburrell.com

since

Version 0.1.0

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 = ''

Methods

getHeader()

Gets a particular header value by a provided header name

public getHeader(string $header) : string|null
Parameters
$header : string
Return values
string|null

getHeaders()

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

        
On this page

Search results