Completed
Push — master ( f8a22c...480ba6 )
by ARCANEDEV
12s
created

DetachedAllPermissions   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
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 26
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

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