DetachedPermissionsFromGroup   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 33
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php namespace Arcanedev\LaravelAuth\Events\PermissionsGroups;
2
3
use Arcanesoft\Contracts\Auth\Models\PermissionsGroup;
4
5
/**
6
 * Class     DetachedPermissionsFromGroup
7
 *
8
 * @package  Arcanedev\LaravelAuth\Events\PermissionsGroups
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class DetachedPermissionsFromGroup extends AbstractPermissionsGroupEvent
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
18
    /** @var  array */
19
    public $permissions;
20
21
    /** @var  int */
22
    public $detached;
23
24
    /* -----------------------------------------------------------------
25
     |  Constructor
26
     | -----------------------------------------------------------------
27
     */
28
29
    /**
30
     * DetachingPermissionsFromGroup constructor.
31
     *
32
     * @param  \Arcanesoft\Contracts\Auth\Models\PermissionsGroup  $group
33
     * @param  array                                               $permissions
34
     * @param  int                                                 $detached
35
     */
36 3
    public function __construct(PermissionsGroup $group, array $permissions, $detached)
37
    {
38 3
        parent::__construct($group);
39
40 3
        $this->permissions = $permissions;
41 3
        $this->detached    = $detached;
42 3
    }
43
}
44