| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 63.64% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class HttpException extends \RuntimeException implements HttpExceptionInterface |
||
| 11 | { |
||
| 12 | private $statusCode; |
||
| 13 | private $headers; |
||
| 14 | |||
| 15 | 3 | public function __construct(int $statusCode, string $message = null, \Exception $previous = null, array $headers = array(), ?int $code = 0) |
|
| 21 | 3 | } |
|
| 22 | |||
| 23 | 1 | public function getStatusCode() |
|
| 24 | { |
||
| 25 | 1 | return $this->statusCode; |
|
| 26 | } |
||
| 27 | |||
| 28 | public function getHeaders() |
||
| 29 | { |
||
| 30 | return $this->headers; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Set response headers. |
||
| 35 | * |
||
| 36 | * @param array $headers Response headers |
||
| 37 | */ |
||
| 38 | public function setHeaders(array $headers) |
||
| 41 | } |
||
| 42 | } |
||
| 43 |