Statement
in package
implements
Stringable
Class Statement.
Interfaces, Classes, Traits and Enums
- Stringable
Table of Contents
- $database : Database
- $sql : array<string|int, mixed>
- SQL clauses and parts.
- __construct() : mixed
- Statement constructor.
- __toString() : string
- reset() : static
- Resets SQL clauses and parts.
- run() : mixed
- Runs the SQL statement.
- sql() : string
- Renders the SQL statement.
Properties
$database
protected
Database
$database
$sql
SQL clauses and parts.
protected
array<string|int, mixed>
$sql
= []
Methods
__construct()
Statement constructor.
public
__construct(Database $database) : mixed
Parameters
- $database : Database
Return values
mixed —__toString()
public
__toString() : string
Return values
string —reset()
Resets SQL clauses and parts.
public
reset([string|null $sql = null ]) : static
Parameters
- $sql : string|null = null
-
A part name or null to reset all
Tags
Return values
static —run()
Runs the SQL statement.
public
abstract run() : mixed
Return values
mixed —sql()
Renders the SQL statement.
public
abstract sql() : string