Documentation

Menu

## Debugger
in package

Debugger.php : 8

### Table of Contents

#### Properties

$view : View
  Represents a debugger for the Query package.

#### 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

Debugger.php : 15

Represents a debugger for the Query package.

`private View $view`

The view object used for debugging.

### Methods

#### __construct()

Debugger.php : 21

Sets the debugging information for a query.

`public __construct(View $view) : mixed`

##### Parameters

$view : View

#### dump()

Debugger.php : 36

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()

Debugger.php : 108

Get the view associated with the Debugger class.

`public getView() : View`

##### Return values

View —

The view associated with the Debugger class.

#### render()

Debugger.php : 116

Renders the debugging information.

`public render() : void`

## Search results