Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | class HttpException extends \RuntimeException |
||
8 | { |
||
9 | private $statusCode; |
||
10 | private $headers; |
||
11 | |||
12 | public function __construct( |
||
13 | $statusCode, |
||
14 | $message = null, |
||
15 | \Exception $previous = null, |
||
16 | array $headers = [], |
||
17 | $code = 0 |
||
18 | ) { |
||
19 | $this->statusCode = $statusCode; |
||
20 | $this->headers = $headers; |
||
21 | parent::__construct((string) $message, $code, $previous); |
||
22 | } |
||
23 | |||
24 | public function getStatusCode() |
||
25 | { |
||
26 | return $this->statusCode; |
||
27 | } |
||
28 | |||
29 | public function getHeaders() |
||
32 | } |
||
33 | } |
||
34 |