fluent-booking
/
vendor
/
wpfluent
/
framework
/
src
/
WPFluent
/
Database
/
Events
/
QueryExecuted.php
QueryExecuted.php in Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution 1.5.0, at vendor/wpfluent/framework/src/WPFluent/Database/Events/QueryExecuted.php
| 1 | <?php |
| 2 | |
| 3 | namespace FluentBooking\Framework\Database\Events; |
| 4 | |
| 5 | class QueryExecuted |
| 6 | { |
| 7 | /** |
| 8 | * The SQL query that was executed. |
| 9 | * |
| 10 | * @var string |
| 11 | */ |
| 12 | public $sql; |
| 13 | |
| 14 | /** |
| 15 | * The array of query bindings. |
| 16 | * |
| 17 | * @var array |
| 18 | */ |
| 19 | public $bindings; |
| 20 | |
| 21 | /** |
| 22 | * The number of milliseconds it took to execute the query. |
| 23 | * |
| 24 | * @var float |
| 25 | */ |
| 26 | public $time; |
| 27 | |
| 28 | /** |
| 29 | * The database connection instance. |
| 30 | * |
| 31 | * @var \FluentBooking\Framework\Database\Query\WPDBConnection |
| 32 | */ |
| 33 | public $connection; |
| 34 | |
| 35 | /** |
| 36 | * The database connection name. |
| 37 | * |
| 38 | * @var string |
| 39 | */ |
| 40 | public $connectionName; |
| 41 | |
| 42 | /** |
| 43 | * Create a new event instance. |
| 44 | * |
| 45 | * @param string $sql |
| 46 | * @param array $bindings |
| 47 | * @param float|null $time |
| 48 | * @param \FluentBooking\Framework\Database\Query\WPDBConnection $connection |
| 49 | * @return void |
| 50 | */ |
| 51 | public function __construct($sql, $bindings, $time, $connection) |
| 52 | { |
| 53 | $this->sql = $sql; |
| 54 | $this->time = $time; |
| 55 | $this->bindings = $bindings; |
| 56 | $this->connection = $connection; |
| 57 | $this->connectionName = $connection->getName(); |
| 58 | } |
| 59 | } |
| 60 |