| Total Complexity | 3 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | #[AsService, AsTagged(FormatterInterface::class)] |
||
| 14 | class ThrowableFormatter implements FormatterInterface |
||
| 15 | 1 | { |
|
| 16 | public function __invoke(\Throwable $e): ErrorContract |
||
| 17 | 1 | { |
|
| 18 | return new FormattedError('Internal Server Error', Response::HTTP_INTERNAL_SERVER_ERROR, trace: $e->getTrace()); |
||
| 19 | } |
||
| 20 | 1 | ||
| 21 | public static function getExceptionClass(): string |
||
| 22 | 1 | { |
|
| 23 | return \Throwable::class; |
||
| 24 | } |
||
| 25 | 1 | ||
| 26 | public static function getPriority(): int |
||
| 29 | } |
||
| 30 | } |
||
| 31 |