Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\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 \Illuminate\Database\Connection
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  \Illuminate\Database\Connection  $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
}