Auditing   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 23
ccs 1
cts 1
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace OwenIt\Auditing\Events;
4
5
use OwenIt\Auditing\Contracts\Auditable;
6
use OwenIt\Auditing\Contracts\AuditDriver;
7
8
class Auditing
9
{
10
    /**
11
     * The Auditable model.
12
     *
13
     * @var \OwenIt\Auditing\Contracts\Auditable
14
     */
15
    public $model;
16
17
    /**
18
     * Audit driver.
19
     *
20
     * @var \OwenIt\Auditing\Contracts\AuditDriver
21
     */
22
    public $driver;
23
24
    /**
25
     * Create a new Auditing event instance.
26
     */
27
    public function __construct(Auditable $model, AuditDriver $driver)
28
    {
29
        $this->model = $model;
30 15
        $this->driver = $driver;
31
    }
32
}
33