Class LoggedQuery
Contains a query string, the params used to executed it, time taken to do it and the number of rows found or affected by its execution.
Property Summary
-
$error public
Exception|nullThe exception that was thrown by the execution of this query
-
$numRows public
intNumber of rows affected or returned by the query execution
-
$params public
arrayAssociative array with the params bound to the query string
-
$query public
stringQuery string that was executed
-
$took public
floatNumber of milliseconds this query took to complete
Method Summary
-
__toString() public
Returns the string representation of this logged query
-
interpolate() protected
Helper function used to replace query placeholders by the real params used to execute the query
-
jsonSerialize() public
Returns data that will be serialized as JSON
Method Detail
__toString() ¶ public
__toString(): string
Returns the string representation of this logged query
Returns
stringinterpolate() ¶ protected
interpolate(): string
Helper function used to replace query placeholders by the real params used to execute the query
Returns
stringjsonSerialize() ¶ public
jsonSerialize(): array
Returns data that will be serialized as JSON
Returns
array