MessageHandler
extends AbstractHandler
in package
Debug message handler class
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor
- addMessage() : MessageHandler
- Add message
- getMessages() : array<string|int, mixed>
- Get messages
- getName() : string|null
- Get name
- hasMessages() : bool
- Determine if the handler has messages
- prepare() : array<string|int, mixed>
- Prepare handler data for storage
- prepareAsString() : string
- Prepare handler data as string
- prepareHeaderAsString() : string
- Prepare header string
- setName() : AbstractHandler
- Set name
Properties
$messages
Messages
protected
array<string|int, mixed>
$messages
= []
$name
Name of time measurement
protected
string|null
$name
= null
Methods
__construct()
Constructor
public
__construct([string|null $name = null ]) : mixed
Instantiate a handler object
Parameters
- $name : string|null = null
addMessage()
Add message
public
addMessage(string $message) : MessageHandler
Parameters
- $message : string
Return values
MessageHandlergetMessages()
Get messages
public
getMessages() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
Get name
public
getName() : string|null
Return values
string|nullhasMessages()
Determine if the handler has messages
public
hasMessages() : bool
Return values
boolprepare()
Prepare handler data for storage
public
prepare() : array<string|int, mixed>
Return values
array<string|int, mixed>prepareAsString()
Prepare handler data as string
public
prepareAsString() : string
Return values
stringprepareHeaderAsString()
Prepare header string
public
prepareHeaderAsString() : string
Return values
stringsetName()
Set name
public
setName(string $name) : AbstractHandler
Parameters
- $name : string