Total Complexity | 4 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class NotFoundException extends Exception implements NotFoundExceptionInterface, FriendlyExceptionInterface |
||
13 | { |
||
14 | #[Pure] |
||
15 | public function __construct(string $class, string $message = null, int $code = 0, Exception $previous = null) |
||
16 | { |
||
17 | if ($message === null) { |
||
18 | $message = sprintf('No definition or class found or resolvable for "%s".', $class); |
||
19 | } |
||
20 | parent::__construct($message, $code, $previous); |
||
21 | } |
||
22 | |||
23 | public function getSolution(): ?string |
||
24 | { |
||
25 | return 'Check if the class exists or if the class is properly defined.'; |
||
26 | } |
||
27 | |||
28 | public function getName(): string |
||
31 | } |
||
32 | } |
||
33 |