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