| Total Complexity | 7 | 
| Total Lines | 37 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 3 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 9 | class RendererEntry | ||
| 10 | { | ||
| 11 | private string|int|null $logLevel = null; | ||
| 12 | |||
| 13 | /** | ||
| 14 | * @param class-string<Throwable>[] $exceptions | ||
|  | |||
| 15 | */ | ||
| 16 | 10 | public function __construct( | |
| 20 | 10 | } | |
| 21 | |||
| 22 | 9 | public function matches(Throwable $exception): bool | |
| 23 |     { | ||
| 24 | 9 |         foreach ($this->exceptions as $exceptionEntry) { | |
| 25 | 9 |             if ($exception::class === $exceptionEntry) { | |
| 26 | 5 | return true; | |
| 27 | } | ||
| 28 | |||
| 29 | 4 |             if (is_subclass_of($exception::class, $exceptionEntry)) { | |
| 30 | 3 | return true; | |
| 31 | } | ||
| 32 | } | ||
| 33 | |||
| 34 | 1 | return false; | |
| 35 | } | ||
| 36 | |||
| 37 | /** @psalm-api */ | ||
| 38 | 1 | public function log(string|int $logLevel): void | |
| 41 | } | ||
| 42 | |||
| 43 | 8 | public function getLogLevel(): string|int|null | |
| 48 |