| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 83.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | abstract class AbstractException extends RuntimeException implements HttpExceptionInterface |
||
| 11 | { |
||
| 12 | protected int $statusCode; |
||
| 13 | |||
| 14 | protected array $headers; |
||
| 15 | |||
| 16 | 162 | public function __construct(string $message = null, Throwable $previous = null, array $headers = [], int $code = 0) |
|
| 27 | 162 | } |
|
| 28 | |||
| 29 | 162 | public function getStatusCode(): int |
|
| 32 | } |
||
| 33 | |||
| 34 | public function setStatusCode(int $statusCode): self |
||
| 35 | { |
||
| 36 | $this->statusCode = $statusCode; |
||
| 37 | |||
| 38 | return $this; |
||
| 39 | } |
||
| 40 | |||
| 41 | 80 | public function getHeaders(): array |
|
| 42 | { |
||
| 43 | 80 | return $this->headers; |
|
| 44 | } |
||
| 45 | |||
| 46 | 162 | public function setHeaders(array $headers): self |
|
| 51 | } |
||
| 52 | } |
||
| 53 |