Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class RandomIdStrategy implements IdStrategyInterface |
||
10 | { |
||
11 | /** @psalm-var positive-int $length */ |
||
12 | private int $length; |
||
13 | |||
14 | /** |
||
15 | * @psalm-param positive-int $length |
||
16 | */ |
||
17 | public function __construct(int $length) |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @throws \Exception |
||
24 | */ |
||
25 | public function getId(): string |
||
30 |