Completed
Push — master ( 314952...32a7b8 )
by wen
01:54
created

AbstractEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
4
namespace Sco\ActionLog\Events;
5
6
use Auth;
7
use Illuminate\Database\Eloquent\Model;
8
9
abstract class AbstractEvent
10
{
11
    public $model;
12
13
    public $userId;
14
15
    public $type;
16
17
    public function __construct(Model $model)
18
    {
19
        $this->model = $model;
20
        $this->userId = Auth::id();
21
    }
22
}
23