Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class NotFoundException extends Exception implements NotFoundExceptionInterface |
||
14 | { |
||
15 | private string $id; |
||
16 | |||
17 | /** |
||
18 | * @param string $id ID of the definition or name of the class that was not found. |
||
19 | */ |
||
20 | 5 | public function __construct(string $id) |
|
21 | { |
||
22 | 5 | $this->id = $id; |
|
23 | 5 | parent::__construct(sprintf('No definition or class found or resolvable for %s.', $id)); |
|
24 | 5 | } |
|
25 | |||
26 | 1 | public function getId(): string |
|
29 | } |
||
30 | } |
||
31 |