Documentation

MessageHandler extends AbstractHandler
in package

Debug message handler class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2021 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
1.3.0

Table of Contents

$messages  : array<string|int, mixed>
Messages
$name  : string
Name of time measurement
__construct()  : mixed
Constructor
addMessage()  : self
Add message
getMessages()  : array<string|int, mixed>
Get messages
getName()  : string
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 = []

Methods

__construct()

Constructor

public __construct([string $name = null ]) : mixed

Instantiate a handler object

Parameters
$name : string = null
Return values
mixed

addMessage()

Add message

public addMessage(string $message) : self
Parameters
$message : string
Return values
self

getMessages()

Get messages

public getMessages() : array<string|int, mixed>
Return values
array<string|int, mixed>

getName()

Get name

public getName() : string
Return values
string

hasMessages()

Determine if the handler has messages

public hasMessages() : bool
Return values
bool

prepare()

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
string

prepareHeaderAsString()

Prepare header string

public prepareHeaderAsString() : string
Return values
string

Search results