Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 4 | ||
Bugs | 0 | 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 | |||
22 | parent::__construct($message, $code, $previous); |
||
23 | } |
||
24 | |||
25 | public function getStatusCode() |
||
26 | { |
||
27 | return $this->statusCode; |
||
28 | } |
||
29 | |||
30 | public function getHeaders() |
||
33 | } |
||
34 | } |
||
35 |