Debugger
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- Sets the debugging information for a query.
- dump() : void
- Dumps the information related to a database query for debugging purposes.
- getView() : View
- Get the view associated with the Debugger class.
- render() : void
- Renders the debugging information.
Properties
$view
Represents a debugger for the Query package.
private
View
$view
The view object used for debugging.
Methods
__construct()
Sets the debugging information for a query.
public
__construct(View $view) : mixed
Parameters
- $view : View
dump()
Dumps the information related to a database query for debugging purposes.
public
dump(string $queryType, array<int|string, mixed>|null $placeholders, PDOStatement|null $pdoStatement, string $interpolatedSql, int|float|null $time[, string|null $error = null ]) : void
Parameters
- $queryType : string
-
The type of the query (e.g. SELECT, INSERT, UPDATE, DELETE).
- $placeholders : array<int|string, mixed>|null
-
The array of placeholders used in the query.
- $pdoStatement : PDOStatement|null
-
The PDOStatement object representing the query.
- $interpolatedSql : string
-
The interpolated SQL query.
- $time : int|float|null
-
The execution time of the query.
- $error : string|null = null
-
The error message, if any.
getView()
Get the view associated with the Debugger class.
public
getView() : View
Return values
View —The view associated with the Debugger class.
render()
Renders the debugging information.
public
render() : void