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
abstract class ConnectionEvent
6
{
7
    /**
8
     * The name of the connection.
9
     *
10
     * @var string
11
     */
12
    public $connectionName;
13
 
14
    /**
15
     * The database connection instance.
16
     *
17
     * @var \Illuminate\Database\Connection
18
     */
19
    public $connection;
20
 
21
    /**
22
     * Create a new event instance.
23
     *
24
     * @param  \Illuminate\Database\Connection  $connection
25
     * @return void
26
     */
27
    public function __construct($connection)
28
    {
29
        $this->connection = $connection;
30
        $this->connectionName = $connection->getName();
31
    }
32
}