| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | abstract class RequestException extends RuntimeException |
||
| 14 | { |
||
| 15 | /** @var RequestInterface */ |
||
| 16 | private $request; |
||
| 17 | |||
| 18 | /** @var ResponseInterface */ |
||
| 19 | private $response; |
||
| 20 | |||
| 21 | /** @var int */ |
||
| 22 | private $statusCode; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @throws StringsException |
||
| 26 | */ |
||
| 27 | public function __construct(RequestInterface $request, ResponseInterface $response, int $statusCode) |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getRequest(): RequestInterface |
||
| 37 | { |
||
| 38 | return $this->request; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getResponse(): ResponseInterface |
||
| 42 | { |
||
| 43 | return $this->response; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getStatusCode(): int |
||
| 49 | } |
||
| 50 | } |
||
| 51 |