Passed
Push — 1.0 ( 468aff...8b7abc )
by David
08:50
created

Role::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Mouf\Security\Model;
3
4
use Mouf\Security\UserManagement\Api\RoleInterface;
5
6
class Role implements RoleInterface
7
{
8
    /**
9
     * @var mixed
10
     */
11
    private $id;
12
13
    /**
14
     * @var string
15
     */
16
    private $label;
17
18
    /**
19
     * Role constructor.
20
     * @param mixed $id
21
     * @param string $label
22
     */
23
    public function __construct($id, string $label)
24
    {
25
        $this->id = $id;
26
        $this->label = $label;
27
    }
28
29
    /**
30
     * @return mixed
31
     */
32
    public function getId()
33
    {
34
        return $this->id;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getLabel(): string
41
    {
42
        return $this->label;
43
    }
44
}