Test Failed
Pull Request — master (#431)
by
unknown
06:58
created

Auditing   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 26
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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\Auditable;
18
use OwenIt\Auditing\Contracts\AuditDriver;
19
20
class Auditing
21
{
22
    /**
23
     * The Auditable model.
24
     *
25
     * @var \OwenIt\Auditing\Contracts\Auditable
26
     */
27
    public $model;
28
29
    /**
30
     * Audit driver.
31
     *
32
     * @var \OwenIt\Auditing\Contracts\AuditDriver
33
     */
34
    public $driver;
35
36
    /**
37
     * Create a new Auditing event instance.
38
     *
39
     * @param \OwenIt\Auditing\Contracts\Auditable   $model
40
     * @param \OwenIt\Auditing\Contracts\AuditDriver $driver
41
     */
42
    public function __construct(Auditable $model, AuditDriver $driver)
43
    {
44
        $this->model = $model;
45
        $this->driver = $driver;
46
    }
47
}
48