Auditing::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
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