Total Complexity | 4 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class NotFoundException extends ContainerException implements NotFoundExceptionInterface |
||
10 | { |
||
11 | public function __construct(string $id, $message = "", $code = 0, Throwable $previous = null) |
||
12 | { |
||
13 | $message = $message ? $message : sprintf("No entry was found in the container for id (%s)", $id); |
||
14 | parent::__construct($message, $code, $previous); |
||
15 | } |
||
16 | |||
17 | public static function noEntryWasFound(string $id): self |
||
20 | } |
||
21 | |||
22 | public static function classNotFound(string $class): self |
||
27 | ); |
||
28 | } |
||
30 |