/var/www/hkosl.com/nick/codeigniter/application/vendor/illuminate/database/Events/QueryExecuted.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php

namespace Illuminate\Database\Events;

class 
QueryExecuted
{
    
/**
     * The SQL query that was executed.
     *
     * @var string
     */
    
public $sql;

    
/**
     * The array of query bindings.
     *
     * @var array
     */
    
public $bindings;

    
/**
     * The number of milliseconds it took to execute the query.
     *
     * @var float
     */
    
public $time;

    
/**
     * The database connection instance.
     *
     * @var \Illuminate\Database\Connection
     */
    
public $connection;

    
/**
     * The database connection name.
     *
     * @var string
     */
    
public $connectionName;

    
/**
     * Create a new event instance.
     *
     * @param  string  $sql
     * @param  array  $bindings
     * @param  float  $time
     * @param
     */
    
public function __construct($sql$bindings$time$connection)
    {
        
$this->sql $sql;
        
$this->time $time;
        
$this->bindings $bindings;
        
$this->connection $connection;
        
$this->connectionName $connection->getName();
    }
}