RoleWasDeleted   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 30
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRole() 0 4 1
1
<?php namespace Anomaly\UsersModule\Role\Event;
2
3
use Anomaly\UsersModule\Role\Contract\RoleInterface;
4
5
/**
6
 * Class RoleWasDeleted
7
 *
8
 * @link          http://pyrocms.com/
9
 * @author        PyroCMS, Inc. <[email protected]>
10
 * @author        Ryan Thompson <[email protected]>
11
 */
12
class RoleWasDeleted
13
{
14
15
    /**
16
     * The role object.
17
     *
18
     * @var RoleInterface
19
     */
20
    protected $role;
21
22
    /**
23
     * Create a new RoleWasDeleted instance.
24
     *
25
     * @param RoleInterface $role
26
     */
27
    public function __construct(RoleInterface $role)
28
    {
29
        $this->role = $role;
30
    }
31
32
    /**
33
     * Get the role.
34
     *
35
     * @return RoleInterface
36
     */
37
    public function getRole()
38
    {
39
        return $this->role;
40
    }
41
}
42