1 | <?php |
||
7 | class IdentityContext implements IIdentityContext |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * @var mixed |
||
12 | */ |
||
13 | private $id; |
||
14 | |||
15 | /** |
||
16 | * @var string[] |
||
17 | */ |
||
18 | private $roles; |
||
19 | |||
20 | |||
21 | /** |
||
22 | * VotingContext constructor. |
||
23 | * @param mixed $id |
||
24 | * @param string[] $roles |
||
25 | */ |
||
26 | public function __construct($id, array $roles) |
||
27 | { |
||
28 | $this->id = $id; |
||
29 | $this->roles = $roles; |
||
30 | } |
||
31 | |||
32 | |||
33 | /** |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function getId() |
||
40 | |||
41 | |||
42 | /** |
||
43 | * @return string[] |
||
44 | */ |
||
45 | 3 | public function getRoles() |
|
49 | } |
||
50 |