\Pop\Debug\HandlerMessageHandler

Debug message handler class

Summary

Methods
Properties
Constants
__construct()
setName()
getName()
prepare()
prepareHeaderAsString()
prepareAsString()
addMessage()
hasMessages()
getMessages()
No public properties found
No constants found
No protected methods found
$name
$messages
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

Name of time measurement

Type

string

$messages

$messages : array

Messages

Type

array

Methods

__construct()

__construct(string  $name = null) 

Constructor

Instantiate a handler object

Parameters

string $name

getName()

getName() : string

Get name

Returns

string

prepare()

prepare() : array

Prepare handler data for storage

Returns

array

prepareHeaderAsString()

prepareHeaderAsString() : string

Prepare header string

Returns

string

prepareAsString()

prepareAsString() : string

Prepare handler data as string

Returns

string

addMessage()

addMessage(string  $message) : self

Add message

Parameters

string $message

Returns

self

hasMessages()

hasMessages() : boolean

Determine if the handler has messages

Returns

boolean

getMessages()

getMessages() : array

Get messages

Returns

array