| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | abstract class RequestException extends RuntimeException |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var RequestInterface |
||
| 17 | */ |
||
| 18 | private $request; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var ResponseInterface |
||
| 22 | */ |
||
| 23 | private $response; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var int |
||
| 27 | */ |
||
| 28 | private $statusCode; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @throws StringsException |
||
| 32 | */ |
||
| 33 | public function __construct(RequestInterface $request, ResponseInterface $response, int $statusCode) |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getRequest(): RequestInterface |
||
| 43 | { |
||
| 44 | return $this->request; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getResponse(): ResponseInterface |
||
| 48 | { |
||
| 49 | return $this->response; |
||
| 50 | } |
||
| 51 | |||
| 52 | public function getStatusCode(): int |
||
| 55 | } |
||
| 56 | } |
||
| 57 |