\Pop\Db\Adapter\ProfilerStep

MySQL database adapter profiler step class

Summary

Methods
Properties
Constants
__construct()
getStart()
finish()
getFinish()
getElapsed()
setQuery()
hasQuery()
getQuery()
addParam()
addParams()
hasParams()
getParams()
addError()
hasErrors()
getErrors()
__get()
No public properties found
No constants found
No protected methods found
$start
$finish
$query
$params
$errors
N/A
No private methods found
No private properties found
N/A

Properties

$start

$start : float

Step start time

Type

float

$finish

$finish : float

Step finish time

Type

float

$query

$query : string

Query SQL

Type

string

$params

$params : array

Statement parameters

Type

array

$errors

$errors : array

Errors

Type

array

Methods

__construct()

__construct() 

Constructor

Instantiate the profiler object

getStart()

getStart() : float

Get start

Returns

float

getFinish()

getFinish() : float

Get finish

Returns

float

getElapsed()

getElapsed() : string

Get elapsed time

Returns

string

hasQuery()

hasQuery() : boolean

Determine if the profiler has query

Returns

boolean

getQuery()

getQuery() : string

Get query

Returns

string

addParam()

addParam(string  $name, mixed  $value) : \Pop\Db\Adapter\Profiler\Step

Add param

Parameters

string $name
mixed $value

Returns

\Pop\Db\Adapter\Profiler\Step

hasParams()

hasParams() : boolean

Determine if the profiler has params

Returns

boolean

getParams()

getParams() : array

Get params

Returns

array

addError()

addError(string  $error, mixed  $number = null) : \Pop\Db\Adapter\Profiler\Step

Add error

Parameters

string $error
mixed $number

Returns

\Pop\Db\Adapter\Profiler\Step

hasErrors()

hasErrors() : boolean

Determine if the profiler has errors

Returns

boolean

getErrors()

getErrors() : array

Get errors

Returns

array

__get()

__get(string  $name) : mixed

Magic method to support shorthand calls to certain values in the step

Parameters

string $name

Returns

mixed