Completed
Push — master ( 8f80f8...5db0fb )
by Quetzy
13:25
created

Audit::user()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace OwenIt\Auditing\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Audit extends Model implements \OwenIt\Auditing\Contracts\Audit
8
{
9
    use \OwenIt\Auditing\Audit;
0 ignored issues
show
introduced by
The trait OwenIt\Auditing\Audit requires some properties which are not provided by OwenIt\Auditing\Models\Audit: $new_values, $url, $event, $auditable, $tags, $old_values, $user_agent, $ip_address, $user
Loading history...
10
11
    /**
12
     * {@inheritdoc}
13
     */
14
    protected $guarded = [];
15
16
    /**
17
     * {@inheritdoc}
18
     */
19
    protected $casts = [
20
        'old_values'   => 'json',
21
        'new_values'   => 'json',
22
        'auditable_id' => 'integer',
23
    ];
24
}
25