| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class InvalidResponseException extends RuntimeException |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var ResponseInterface HTTP response instance. |
||
| 18 | */ |
||
| 19 | private ResponseInterface $response; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Constructor. |
||
| 23 | * |
||
| 24 | * @param ResponseInterface $response HTTP response instance |
||
| 25 | * @param string $message error message |
||
| 26 | * @param int $code error code |
||
| 27 | * @param Throwable $previous The previous exception used for the exception chaining. |
||
| 28 | */ |
||
| 29 | public function __construct($response, $message = null, $code = 0, Throwable $previous = null) |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getResponse(): ResponseInterface |
||
| 40 |