Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class ServerException extends RuntimeException implements ClientExceptionInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var ResponseInterface |
||
20 | */ |
||
21 | private $response; |
||
22 | |||
23 | /** |
||
24 | * @var Type |
||
25 | */ |
||
26 | private $type; |
||
27 | |||
28 | public static function with(Type $type, ResponseInterface $response): self |
||
37 | } |
||
38 | |||
39 | public function getType(): Type |
||
40 | { |
||
41 | return $this->type; |
||
42 | } |
||
43 | |||
44 | public function getResponse(): ResponseInterface |
||
47 | } |
||
48 | } |
||
49 |