Completed
Push — master ( f9e78a...edb43e )
by Abdelrahman
09:22
created

RoleHandler::attached()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * NOTICE OF LICENSE
5
 *
6
 * Part of the Rinvex Fort Package.
7
 *
8
 * This source file is subject to The MIT License (MIT)
9
 * that is bundled with this package in the LICENSE file.
10
 *
11
 * Package: Rinvex Fort Package
12
 * License: The MIT License (MIT)
13
 * Link:    https://rinvex.com
14
 */
15
16
namespace Rinvex\Fort\Handlers;
17
18
use Rinvex\Fort\Models\Role;
19
use Rinvex\Fort\Models\User;
20
use Rinvex\Fort\Models\Ability;
21
22
class RoleHandler
23
{
24
    /**
25
     * Listen to the Role created event.
26
     *
27
     * @param \Rinvex\Fort\Models\Role $role
28
     *
29
     * @return void
30
     */
31
    public function created(Role $role)
0 ignored issues
show
Unused Code introduced by
The parameter $role is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
32
    {
33
        //
34
    }
35
36
    /**
37
     * Listen to the Role updated event.
38
     *
39
     * @param \Rinvex\Fort\Models\Role $role
40
     *
41
     * @return void
42
     */
43
    public function updated(Role $role)
0 ignored issues
show
Unused Code introduced by
The parameter $role is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
44
    {
45
        Ability::forgetCache();
46
        User::forgetCache();
47
    }
48
49
    /**
50
     * Listen to the Role deleted event.
51
     *
52
     * @param \Rinvex\Fort\Models\Role $role
53
     *
54
     * @return void
55
     */
56
    public function deleted(Role $role)
0 ignored issues
show
Unused Code introduced by
The parameter $role is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
57
    {
58
        Ability::forgetCache();
59
        User::forgetCache();
60
    }
61
62
    /**
63
     * Listen to the Role attached event.
64
     *
65
     * @param \Rinvex\Fort\Models\Role $role
66
     *
67
     * @return void
68
     */
69
    public function attached(Role $role)
0 ignored issues
show
Unused Code introduced by
The parameter $role is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
70
    {
71
        Ability::forgetCache();
72
        User::forgetCache();
73
    }
74
75
    /**
76
     * Listen to the Role synced event.
77
     *
78
     * @param \Rinvex\Fort\Models\Role $role
79
     *
80
     * @return void
81
     */
82
    public function synced(Role $role)
0 ignored issues
show
Unused Code introduced by
The parameter $role is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
83
    {
84
        Ability::forgetCache();
85
        User::forgetCache();
86
    }
87
88
    /**
89
     * Listen to the Role detached event.
90
     *
91
     * @param \Rinvex\Fort\Models\Role $role
92
     *
93
     * @return void
94
     */
95
    public function detached(Role $role)
0 ignored issues
show
Unused Code introduced by
The parameter $role is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
96
    {
97
        Ability::forgetCache();
98
        User::forgetCache();
99
    }
100
}
101