| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class HttpException extends \RuntimeException |
||
| 19 | { |
||
| 20 | private $statusCode; |
||
|
|
|||
| 21 | private $headers; |
||
| 22 | |||
| 23 | public function __construct(int $statusCode, string $message = null, \Exception $previous = null, array $headers = [], $code = 0) |
||
| 24 | { |
||
| 25 | $this->statusCode = $statusCode; |
||
| 26 | $this->headers = $headers; |
||
| 27 | |||
| 28 | parent::__construct($message, $code, $previous); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getStatusCode() |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getHeaders() |
||
| 39 | } |
||
| 40 | } |
||
| 41 |