| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | #[Pure(true)] |
||
| 16 | public static function notFound(\Throwable $previous, bool $wrapCallable = true): callable|self |
||
| 17 | { |
||
| 18 | $message = sprintf(self::NOT_FOUND_MESSAGE, $previous::class); |
||
| 19 | $exception = new self($message, previous: $previous); |
||
| 20 | |||
| 21 | return $wrapCallable ? static fn () => throw $exception : $exception; |
||
| 22 | } |
||
| 24 |