Audited   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 31
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 5 1
1
<?php
2
3
namespace OwenIt\Auditing\Events;
4
5
use OwenIt\Auditing\Contracts\Audit;
6
use OwenIt\Auditing\Contracts\Auditable;
7
use OwenIt\Auditing\Contracts\AuditDriver;
8
9
class Audited
10
{
11
    /**
12
     * The Auditable model.
13
     *
14
     * @var \OwenIt\Auditing\Contracts\Auditable
15
     */
16
    public $model;
17
18
    /**
19
     * Audit driver.
20
     *
21
     * @var \OwenIt\Auditing\Contracts\AuditDriver
22
     */
23
    public $driver;
24
25
    /**
26
     * The Audit model.
27
     *
28
     * @var \OwenIt\Auditing\Contracts\Audit|null
29
     */
30
    public $audit;
31
32
    /**
33
     * Create a new Audited event instance.
34
     */
35
    public function __construct(Auditable $model, AuditDriver $driver, ?Audit $audit = null)
36
    {
37
        $this->model = $model;
38
        $this->driver = $driver;
39 15
        $this->audit = $audit;
40
    }
41
}
42