| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 80% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | abstract class AbstractLazyHttpResponse implements LazyResponseInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | protected $status; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $headers; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * AbstractLazyHttpResponse constructor. |
||
| 25 | */ |
||
| 26 | 6 | public function __construct(int $status = Response::HTTP_OK, array $headers = []) |
|
| 30 | 6 | } |
|
| 31 | |||
| 32 | 6 | public function getStatus(): int |
|
| 33 | { |
||
| 34 | 6 | return $this->status; |
|
| 35 | } |
||
| 36 | |||
| 37 | 6 | public function getHeaders(): array |
|
| 40 | } |
||
| 41 | |||
| 42 | public function getStatusCode(): int |
||
| 47 |