ConnectorEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 28
c 0
b 0
f 0
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
namespace ShiftOneLabs\LaravelDbEvents\Extension\Database\Events;
3
4
abstract class ConnectorEvent
5
{
6
    /**
7
     * The database connector instance.
8
     *
9
     * @var \Illuminate\Database\Connectors\Connector
10
     */
11
    public $connector;
12
13
    /**
14
     * The name of the connection.
15
     *
16
     * @var string
17
     */
18
    public $connectionName;
19
20
    /**
21
     * Create a new event instance.
22
     *
23
     * @param \Illuminate\Database\Connectors\Connector  $connector
24
     * @param string  $name
25
     */
26 39
    public function __construct($connector, $name)
27
    {
28 39
        $this->connector = $connector;
29 39
        $this->connectionName = $name;
30 39
    }
31
}
32