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