Updating   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 22
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Mrluke\Privileges\Events\Permission;
4
5
use Illuminate\Foundation\Events\Dispatchable;
6
use Illuminate\Queue\SerializesModels;
7
8
use Mrluke\Privileges\Models\Permission;
9
10
class Updating
11
{
12
    use Dispatchable, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Mrluke\Privileges\Events\Permission\Updating: $id, $relations, $class, $connection, $keyBy
Loading history...
13
14
    /**
15
     * Authenticable that cause Event.
16
     *
17
     * @var \Illuminate\Foundation\Auth\User
18
     */
19
    public $auth;
20
21
    /**
22
     * Instance of new model.
23
     *
24
     * @var \Mrluke\Privileges\Models\Permission
25
     */
26
    public $model;
27
28
    public function __construct(Permission $model)
29
    {
30
        $this->auth = auth()->user();
31
        $this->model = $model;
32
    }
33
}
34