StatementPrepared.php
TLDR
This file contains the class StatementPrepared
which represents an event when a statement is prepared in a database connection.
Classes
StatementPrepared
The StatementPrepared
class represents an event when a statement is prepared in a database connection. It has the following properties:
-
connection: The database connection instance of type
\Illuminate\Database\Connection
. -
statement: The PDO statement instance of type
\PDOStatement
.
The class has a constructor method that accepts a Connection
object and a PDOStatement
object as parameters.
<?php
namespace Illuminate\Database\Events;
class StatementPrepared
{
/**
* The database connection instance.
*
* @var \Illuminate\Database\Connection
*/
public $connection;
/**
* The PDO statement.
*
* @var \PDOStatement
*/
public $statement;
/**
* Create a new event instance.
*
* @param \Illuminate\Database\Connection $connection
* @param \PDOStatement $statement
* @return void
*/
public function __construct($connection, $statement)
{
$this->statement = $statement;
$this->connection = $connection;
}
}