| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public static function noMapperFound(\Throwable $previous, bool $wrapCallable = true) |
||
| 12 | { |
||
| 13 | $message = sprintf(self::NO_MAPPER_FOUND_MESSAGE, $previous::class); |
||
| 14 | $exception = new self($message, previous: $previous); |
||
| 15 | |||
| 16 | return $wrapCallable ? static fn () => throw $exception : $exception; |
||
| 17 | } |
||
| 19 |