Step
extends AbstractProfiler
in package
MySQL database adapter profiler step class
Tags
Table of Contents
Properties
- $errors : array<string|int, mixed>
- Errors
- $finish : float|null
- Step finish time
- $params : array<string|int, mixed>
- Statement parameters
- $query : string|null
- Query SQL
- $start : float|null
- Step start time
Methods
- __construct() : mixed
- Constructor
- __get() : mixed
- Magic method to support shorthand calls to certain values in the step
- addError() : Step
- Add error
- addParam() : Step
- Add param
- addParams() : Step
- Add params
- finish() : AbstractProfiler
- Finish profiler
- getElapsed() : string
- Get elapsed time
- getErrors() : array<string|int, mixed>
- Get errors
- getFinish() : float|null
- Get finish
- getParams() : array<string|int, mixed>
- Get params
- getQuery() : string|null
- Get query
- getStart() : float|null
- Get start
- hasErrors() : bool
- Determine if the profiler has errors
- hasParams() : bool
- Determine if the profiler has params
- hasQuery() : bool
- Determine if the profiler has query
- setQuery() : Step
- Set query
Properties
$errors
Errors
protected
array<string|int, mixed>
$errors
= []
$finish
Step finish time
protected
float|null
$finish
= null
$params
Statement parameters
protected
array<string|int, mixed>
$params
= []
$query
Query SQL
protected
string|null
$query
= null
$start
Step start time
protected
float|null
$start
= null
Methods
__construct()
Constructor
public
__construct() : mixed
Instantiate the profiler object
__get()
Magic method to support shorthand calls to certain values in the step
public
__get(string $name) : mixed
Parameters
- $name : string
addError()
Add error
public
addError(string $error[, mixed $number = null ]) : Step
Parameters
- $error : string
- $number : mixed = null
Return values
StepaddParam()
Add param
public
addParam(string $name, mixed $value) : Step
Parameters
- $name : string
- $value : mixed
Return values
StepaddParams()
Add params
public
addParams(array<string|int, mixed> $params) : Step
Parameters
- $params : array<string|int, mixed>
Return values
Stepfinish()
Finish profiler
public
finish() : AbstractProfiler
Return values
AbstractProfilergetElapsed()
Get elapsed time
public
getElapsed() : string
Return values
stringgetErrors()
Get errors
public
getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>getFinish()
Get finish
public
getFinish() : float|null
Return values
float|nullgetParams()
Get params
public
getParams() : array<string|int, mixed>
Return values
array<string|int, mixed>getQuery()
Get query
public
getQuery() : string|null
Return values
string|nullgetStart()
Get start
public
getStart() : float|null
Return values
float|nullhasErrors()
Determine if the profiler has errors
public
hasErrors() : bool
Return values
boolhasParams()
Determine if the profiler has params
public
hasParams() : bool
Return values
boolhasQuery()
Determine if the profiler has query
public
hasQuery() : bool
Return values
boolsetQuery()
Set query
public
setQuery(string $sql) : Step
Parameters
- $sql : string