Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | abstract class InternalException extends Exception |
||
11 | { |
||
12 | /** |
||
13 | * @param Throwable|null $previous |
||
14 | * @param array<mixed, mixed> $context |
||
15 | */ |
||
16 | 12 | public function __construct( |
|
17 | string $message, |
||
18 | int $code, |
||
19 | Throwable $previous = null, |
||
20 | private readonly array $context = [] |
||
21 | ) { |
||
22 | 12 | parent::__construct($message, $code, $previous); |
|
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return array<mixed, mixed> |
||
27 | */ |
||
28 | 2 | public function getContext(): array |
|
31 | } |
||
32 | } |
||
33 |