Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class RuntimeException extends \RuntimeException implements ExceptionInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private $context; |
||
13 | |||
14 | /** |
||
15 | * RuntimeException constructor. |
||
16 | * @param string $message |
||
17 | * @param int $code |
||
18 | * @param Throwable|null $previous |
||
19 | * @param array $context |
||
20 | */ |
||
21 | 1 | public function __construct(string $message = '', int $code = 0, ?Throwable $previous = null, array $context = []) |
|
22 | { |
||
23 | 1 | $this->context = $context; |
|
24 | 1 | parent::__construct($message, $code, $previous); |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return array |
||
29 | */ |
||
30 | 1 | public function getContext(): array |
|
33 | } |
||
34 | } |
||
35 |