| Total Complexity | 8 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | final class RoleAliasCollection |
||
| 10 | { |
||
| 11 | private array $aliases = []; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param array<string, array<int, mixed>> $schema |
||
| 15 | */ |
||
| 16 | public function __construct(array $schema) |
||
| 32 | } |
||
| 33 | } |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getAlias(string $role): string |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param non-empty-string $role |
||
|
|
|||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | private function makeAlias(string $role): string |
||
| 60 |