Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 90.91% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | abstract class ThrowableRenderer implements ThrowableRendererInterface |
||
9 | { |
||
10 | protected ?ServerRequestInterface $request = null; |
||
11 | |||
12 | 6 | protected function getThrowableName(\Throwable $t): string |
|
21 | } |
||
22 | |||
23 | 5 | protected function convertThrowableToVerboseString(\Throwable $t): string |
|
24 | { |
||
25 | 5 | return $this->getThrowableName($t) . " with message '{$t->getMessage()}' \n\nin " |
|
26 | 5 | . $t->getFile() . ':' . $t->getLine() . "\n\n" |
|
27 | 5 | . "Stack trace:\n" . $t->getTraceAsString(); |
|
28 | } |
||
29 | |||
30 | 8 | public function setRequest(ServerRequestInterface $request): void |
|
33 | 8 | } |
|
34 | } |
||
35 |