DetachedAllPermissions   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
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 28
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
18
    /** @var  int */
19
    public $detached;
20
21
    /* -----------------------------------------------------------------
22
     |  Constructor
23
     | -----------------------------------------------------------------
24
     */
25
26
    /**
27
     * DetachedAllPermissionsFromGroup constructor.
28
     *
29
     * @param  \Arcanesoft\Contracts\Auth\Models\PermissionsGroup  $group
30
     * @param  int                                                 $detached
31
     */
32 6
    public function __construct(PermissionsGroup $group, $detached)
33
    {
34 6
        parent::__construct($group);
35
36 6
        $this->detached = $detached;
37 6
    }
38
}
39