Completed
Pull Request — master (#439)
by
unknown
09:25 queued 01:29
created

Audited   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 35
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
/**
3
 * This file is part of the Laravel Auditing package.
4
 *
5
 * @author     Antério Vieira <[email protected]>
6
 * @author     Quetzy Garcia  <[email protected]>
7
 * @author     Raphael França <[email protected]>
8
 * @copyright  2015-2018
9
 *
10
 * For the full copyright and license information,
11
 * please view the LICENSE.md file that was distributed
12
 * with this source code.
13
 */
14
15
namespace OwenIt\Auditing\Events;
16
17
use OwenIt\Auditing\Contracts\Audit;
18
use OwenIt\Auditing\Contracts\Auditable;
19
use OwenIt\Auditing\Contracts\AuditDriver;
20
21
class Audited
22
{
23
    /**
24
     * The Auditable model.
25
     *
26
     * @var \OwenIt\Auditing\Contracts\Auditable
27
     */
28
    public $model;
29
30
    /**
31
     * Audit driver.
32
     *
33
     * @var \OwenIt\Auditing\Contracts\AuditDriver
34
     */
35
    public $driver;
36
37
    /**
38
     * The Audit model.
39
     *
40
     * @var \OwenIt\Auditing\Contracts\Audit|null
41
     */
42
    public $audit;
43
44
    /**
45
     * Create a new Audited event instance.
46
     *
47
     * @param \OwenIt\Auditing\Contracts\Auditable   $model
48
     * @param \OwenIt\Auditing\Contracts\AuditDriver $driver
49
     * @param \OwenIt\Auditing\Contracts\Audit       $audit
50
     */
51
    public function __construct(Auditable $model, AuditDriver $driver, Audit $audit = null)
52
    {
53
        $this->model = $model;
54
        $this->driver = $driver;
55
        $this->audit = $audit;
56
    }
57
}
58