Completed
Pull Request — master (#23)
by ARCANEDEV
10:18
created

AttachingPermissionsToGroup   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     AttachingPermissionsToGroup
7
 *
8
 * @package  Arcanedev\LaravelAuth\Events\PermissionsGroups
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class AttachingPermissionsToGroup extends AbstractPermissionsGroupEvent
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
    /** @var  \Illuminate\Support\Collection|array */
18
    public $permissions;
19
20
    /* -----------------------------------------------------------------
21
     |  Constructor
22
     | -----------------------------------------------------------------
23
     */
24
    /**
25
     * AttachingPermissionsToGroup constructor.
26
     *
27
     * @param  \Arcanesoft\Contracts\Auth\Models\PermissionsGroup  $group
28
     * @param  \Illuminate\Support\Collection|array                $permissions
29
     */
30 9
    public function __construct(PermissionsGroup $group, $permissions)
31
    {
32 9
        parent::__construct($group);
33
34 9
        $this->permissions = $permissions;
35 9
    }
36
}
37