| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 26 | 9 | public function __construct(string|UriInterface $message = '', int $code = 404, \Throwable $previous = null) |
|
| 27 | { |
||
| 28 | 9 | if ($message instanceof UriInterface) { |
|
| 29 | 9 | $message = \sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $message->getPath()); |
|
| 30 | } |
||
| 31 | |||
| 32 | 9 | parent::__construct($message, $code, $previous); |
|
| 33 | } |
||
| 35 |