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

DetachedAllPermissions::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 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