QueryHandler
extends AbstractHandler
in package
Debug query handler class
Tags
Table of Contents
- $name : string
- Name of time measurement
- $profiler : Profiler
- Profiler
- __construct() : mixed
- Constructor
- __get() : mixed
- Magic get method to return the profiler.
- getName() : string
- Get name
- getProfiler() : Profiler
- Get profiler
- hasProfiler() : bool
- Determine if the handler has a profiler
- prepare() : array<string|int, mixed>
- Prepare handler data for storage
- prepareAsString() : string
- Prepare handler data as string
- prepareHeaderAsString() : string
- Prepare header string
- profiler() : Profiler
- Get profiler (alias method)
- setName() : AbstractHandler
- Set name
- setProfiler() : self
- Set profiler
Properties
$name
Name of time measurement
protected
string
$name
= null
$profiler
Profiler
protected
Profiler
$profiler
= null
Methods
__construct()
Constructor
public
__construct([Profiler $profiler = null ][, string $name = null ]) : mixed
Instantiate a query handler object
Parameters
- $profiler : Profiler = null
- $name : string = null
Return values
mixed —__get()
Magic get method to return the profiler.
public
__get(string $name) : mixed
Parameters
- $name : string
Return values
mixed —getName()
Get name
public
getName() : string
Return values
string —getProfiler()
Get profiler
public
getProfiler() : Profiler
Return values
Profiler —hasProfiler()
Determine if the handler has a profiler
public
hasProfiler() : 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 —profiler()
Get profiler (alias method)
public
profiler() : Profiler
Return values
Profiler —setName()
Set name
public
setName(string $name) : AbstractHandler
Parameters
- $name : string
Return values
AbstractHandler —setProfiler()
Set profiler
public
setProfiler(Profiler $profiler) : self
Parameters
- $profiler : Profiler