\Pop\DebugDebugger

Debugger class

Summary

Methods
Properties
Constants
__construct()
addHandler()
hasHandler()
getHandler()
getHandlers()
setStorage()
hasStorage()
getStorage()
getData()
save()
render()
getRequestId()
renderWithHeaders()
generateId()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
__toString()
No public properties found
No constants found
No protected methods found
$handlers
$storage
$requestId
N/A
No private methods found
No private properties found
N/A

Properties

$handlers

$handlers : array

Debugger handlers

Type

array

$requestId

$requestId : string

Debugger request ID

Type

string

Methods

__construct()

__construct() 

Constructor

Instantiate a debug object

hasHandler()

hasHandler(string  $name) : boolean

Determine if the debug object has a handler

Parameters

string $name

Returns

boolean

getHandler()

getHandler(string  $name) : mixed

Get a handler

Parameters

string $name

Returns

mixed

getHandlers()

getHandlers() : array

Get all handlers

Returns

array

hasStorage()

hasStorage() : boolean

Determine if the debug object has storage

Returns

boolean

getData()

getData() : array

Get all data from handlers

Returns

array

save()

save() : void

Save the debug handlers' data to storage

render()

render() : string

Render the debug handlers' data to string

Returns

string

getRequestId()

getRequestId() : string

Get current request ID

Returns

string

renderWithHeaders()

renderWithHeaders() : string

Render the debug handlers' data to string with headers

Returns

string

generateId()

generateId() : string

Generate unique ID

Returns

string

offsetExists()

offsetExists(mixed  $offset) : boolean

ArrayAccess offsetExists

Parameters

mixed $offset

Returns

boolean

offsetGet()

offsetGet(mixed  $offset) : mixed

ArrayAccess offsetGet

Parameters

mixed $offset

Returns

mixed

offsetSet()

offsetSet(mixed  $offset, mixed  $value) : void

ArrayAccess offsetSet

Parameters

mixed $offset
mixed $value

Throws

\Pop\Debug\Exception

offsetUnset()

offsetUnset(mixed  $offset) : void

ArrayAccess offsetUnset

Parameters

mixed $offset

__toString()

__toString() : string

Render to string

Returns

string