1 | <?php |
||
10 | final class IdentityReference implements IIdentity |
||
11 | { |
||
12 | use SmartObject; |
||
13 | |||
14 | /** @var string */ |
||
15 | private $className; |
||
16 | |||
17 | /** @var */ |
||
18 | private $id; |
||
19 | |||
20 | /** |
||
21 | * @param string $className |
||
22 | * @param mixed $id |
||
23 | */ |
||
24 | public function __construct(string $className, $id) |
||
29 | |||
30 | /** |
||
31 | * @return string |
||
32 | */ |
||
33 | public function getClassName(): string |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function getId() |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function getRoles(): array |
||
53 | } |
||
54 |