| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | abstract class AbstractIdentity extends Row implements IdentityInterface |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | abstract public function getPrivileges(): array; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | public function getId(): ?int |
||
| 36 | { |
||
| 37 | return $this->id ? (int)$this->id : null; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function hasPrivilege($module, $privilege): bool |
||
| 48 | } |
||
| 49 | } |
||
| 50 |