Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class RequestException extends \RuntimeException implements Exception |
||
11 | { |
||
12 | /** |
||
13 | * @var ServerRequestInterface |
||
14 | */ |
||
15 | private $request; |
||
16 | |||
17 | /** |
||
18 | * @var array<string, mixed> |
||
19 | */ |
||
20 | private $context; |
||
21 | |||
22 | /** |
||
23 | * @param array<string, mixed> $context |
||
24 | */ |
||
25 | public function __construct(string $message, int $code, ServerRequestInterface $request, array $context = []) |
||
26 | { |
||
27 | parent::__construct($message, $code); |
||
28 | $this->request = $request; |
||
29 | $this->context = $context; |
||
30 | } |
||
31 | |||
32 | public function getRequest(): ServerRequestInterface |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return array<string, mixed> |
||
39 | */ |
||
40 | public function getContext(): array |
||
43 | } |
||
44 | } |
||
45 |