QueryHandler
extends AbstractHandler
in package
Debug query handler class
Tags
Table of Contents
Properties
- $logger : Logger|null
- Logger object
- $loggingParams : array<string|int, mixed>
- Logging params
- $name : string|null
- Name of time measurement
- $profiler : Profiler|null
- Profiler
Methods
- __construct() : mixed
- Constructor
- __get() : mixed
- Magic get method to return the profiler.
- getLogger() : Logger|null
- Get logger
- getLoggingParams() : array<string|int, mixed>
- Get logging params
- getName() : string|null
- Get name
- getProfiler() : Profiler
- Get profiler
- hasLogger() : bool
- Has logger
- hasLoggingParams() : bool
- Has logging parameters
- hasName() : bool
- Has name
- hasProfiler() : bool
- Determine if the handler has a profiler
- log() : void
- Trigger handler logging
- 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)
- setLogger() : AbstractHandler
- Set logger
- setLoggingParams() : AbstractHandler
- Set logger
- setName() : AbstractHandler
- Set name
- setProfiler() : QueryHandler
- Set profiler
Properties
$logger
Logger object
protected
Logger|null
$logger
= null
$loggingParams
Logging params
protected
array<string|int, mixed>
$loggingParams
= []
$name
Name of time measurement
protected
string|null
$name
= null
$profiler
Profiler
protected
Profiler|null
$profiler
= null
Methods
__construct()
Constructor
public
__construct([Profiler|null $profiler = null ][, string|null $name = null ][, Logger|null $logger = null ][, array<string|int, mixed> $loggingParams = [] ]) : mixed
Instantiate a query handler object
Parameters
__get()
Magic get method to return the profiler.
public
__get(string $name) : mixed
Parameters
- $name : string
getLogger()
Get logger
public
getLogger() : Logger|null
Return values
Logger|nullgetLoggingParams()
Get logging params
public
getLoggingParams() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
Get name
public
getName() : string|null
Return values
string|nullgetProfiler()
Get profiler
public
getProfiler() : Profiler
Return values
ProfilerhasLogger()
Has logger
public
hasLogger() : bool
Return values
boolhasLoggingParams()
Has logging parameters
public
hasLoggingParams() : bool
Return values
boolhasName()
Has name
public
hasName() : bool
Return values
boolhasProfiler()
Determine if the handler has a profiler
public
hasProfiler() : bool
Return values
boollog()
Trigger handler logging
public
log() : void
Tags
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
stringprepareHeaderAsString()
Prepare header string
public
prepareHeaderAsString() : string
Return values
stringprofiler()
Get profiler (alias method)
public
profiler() : Profiler
Return values
ProfilersetLogger()
Set logger
public
setLogger(Logger $logger) : AbstractHandler
Parameters
- $logger : Logger
Return values
AbstractHandlersetLoggingParams()
Set logger
public
setLoggingParams(array<string|int, mixed> $loggingParams) : AbstractHandler
Parameters
- $loggingParams : array<string|int, mixed>
Return values
AbstractHandlersetName()
Set name
public
setName(string $name) : AbstractHandler
Parameters
- $name : string
Return values
AbstractHandlersetProfiler()
Set profiler
public
setProfiler(Profiler $profiler) : QueryHandler
Parameters
- $profiler : Profiler