| 1 | <?php |
||
| 5 | class IdentityContext implements IVotingContext |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @var mixed |
||
| 10 | */ |
||
| 11 | private $id; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string[] |
||
| 15 | */ |
||
| 16 | private $roles; |
||
| 17 | |||
| 18 | |||
| 19 | /** |
||
| 20 | * VotingContext constructor. |
||
| 21 | * @param mixed $id |
||
| 22 | * @param string[] $roles |
||
| 23 | */ |
||
| 24 | public function __construct($id, array $roles) |
||
| 29 | |||
| 30 | |||
| 31 | /** |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | public function getId() |
||
| 38 | |||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string[] |
||
| 42 | */ |
||
| 43 | public function getRoles() |
||
| 47 | } |
||
| 48 |