| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class HttpException extends \RuntimeException implements HttpExceptionInterface |
||
| 8 | { |
||
| 9 | protected $ch; |
||
| 10 | protected $response; |
||
| 11 | |||
| 12 | 14 | public function __construct($message, $code, ResponseInterface $response) |
|
| 13 | 14 | { |
|
| 14 | 14 | parent::__construct($message, $code); |
|
| 15 | 14 | $this->response = $response; |
|
| 16 | 14 | } |
|
| 17 | |||
| 18 | 1 | public function getStatusCode() |
|
| 19 | 1 | { |
|
| 20 | 1 | return $this->response->getStatusCode(); |
|
| 21 | } |
||
| 22 | |||
| 23 | 1 | public function getReasonPhrase() |
|
| 26 | } |
||
| 27 | |||
| 28 | 1 | public function getResponse() |
|
| 33 |