Debugger
in package
implements
ArrayAccess, Countable, IteratorAggregate
Debugger class
Tags
Table of Contents
Interfaces
- ArrayAccess
- Countable
- IteratorAggregate
Properties
- $handlers : array<string|int, mixed>
- Debugger handlers
- $requestId : string|null
- Debugger request ID
- $storage : StorageInterface|null
- Debugger storage object
Methods
- __construct() : mixed
- Constructor
- __get() : mixed
- Get a handler
- __isset() : bool
- Is handler set
- __set() : void
- Set a handler
- __unset() : void
- Unset a handler
- addHandler() : Debugger
- Add a handler
- addHandlers() : Debugger
- Add handlers
- addLogger() : Debugger
- Add logger to handler(s)
- clear() : void
- Clear storage
- count() : int
- Method to get the count of the handlers
- generateId() : string
- Generate unique ID
- getHandler() : HandlerInterface|null
- Get a handler
- getHandlers() : array<string|int, mixed>
- Get all handlers
- getIterator() : ArrayIterator
- Method to iterate over the handlers
- getRequestId() : string
- Get current request ID
- getStorage() : StorageInterface
- Get the storage object
- hasHandler() : bool
- Determine if the debug object has a handler
- hasRequestId() : bool
- Has request ID
- hasStorage() : bool
- Determine if the debug object has storage
- offsetExists() : bool
- ArrayAccess offsetExists
- offsetGet() : mixed
- ArrayAccess offsetGet
- offsetSet() : void
- ArrayAccess offsetSet
- offsetUnset() : void
- ArrayAccess offsetUnset
- save() : string
- Save the debug handlers' data to storage
- setRequestId() : Debugger
- Set request ID
- setStorage() : Debugger
- Set the storage object
Properties
$handlers
Debugger handlers
protected
array<string|int, mixed>
$handlers
= []
$requestId
Debugger request ID
protected
string|null
$requestId
= null
$storage
Debugger storage object
protected
StorageInterface|null
$storage
= null
Methods
__construct()
Constructor
public
__construct() : mixed
Instantiate a debug object
__get()
Get a handler
public
__get(string $name) : mixed
Parameters
- $name : string
__isset()
Is handler set
public
__isset(string $name) : bool
Parameters
- $name : string
Return values
bool__set()
Set a handler
public
__set(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
Tags
__unset()
Unset a handler
public
__unset(string $name) : void
Parameters
- $name : string
addHandler()
Add a handler
public
addHandler(HandlerInterface $handler) : Debugger
Parameters
- $handler : HandlerInterface
Return values
DebuggeraddHandlers()
Add handlers
public
addHandlers(array<string|int, mixed> $handlers) : Debugger
Parameters
- $handlers : array<string|int, mixed>
Return values
DebuggeraddLogger()
Add logger to handler(s)
public
addLogger(Logger $logger, array<string|int, mixed> $loggingParams) : Debugger
Parameters
- $logger : Logger
- $loggingParams : array<string|int, mixed>
Return values
Debuggerclear()
Clear storage
public
clear() : void
count()
Method to get the count of the handlers
public
count() : int
Return values
intgenerateId()
Generate unique ID
public
generateId() : string
Return values
stringgetHandler()
Get a handler
public
getHandler(string $name) : HandlerInterface|null
Parameters
- $name : string
Return values
HandlerInterface|nullgetHandlers()
Get all handlers
public
getHandlers() : array<string|int, mixed>
Return values
array<string|int, mixed>getIterator()
Method to iterate over the handlers
public
getIterator() : ArrayIterator
Return values
ArrayIteratorgetRequestId()
Get current request ID
public
getRequestId() : string
Return values
stringgetStorage()
Get the storage object
public
getStorage() : StorageInterface
Return values
StorageInterfacehasHandler()
Determine if the debug object has a handler
public
hasHandler(string $name) : bool
Parameters
- $name : string
Return values
boolhasRequestId()
Has request ID
public
hasRequestId() : bool
Return values
boolhasStorage()
Determine if the debug object has storage
public
hasStorage() : bool
Return values
booloffsetExists()
ArrayAccess offsetExists
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
ArrayAccess offsetGet
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
offsetSet()
ArrayAccess offsetSet
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
Tags
offsetUnset()
ArrayAccess offsetUnset
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
save()
Save the debug handlers' data to storage
public
save() : string
Return values
stringsetRequestId()
Set request ID
public
setRequestId(string $requestId) : Debugger
Parameters
- $requestId : string
Return values
DebuggersetStorage()
Set the storage object
public
setStorage(StorageInterface $storage) : Debugger
Parameters
- $storage : StorageInterface