| Total Complexity | 1 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class ResponseData |
||
| 7 | { |
||
| 8 | /** @var array<string|int, string|int> */ |
||
| 9 | public array $headers = []; |
||
| 10 | public ?string $data = null; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param array{ |
||
| 14 | * response_code?: int, |
||
| 15 | * last-modified?: string, |
||
| 16 | * accept-ranges?: string, |
||
| 17 | * cache-control?: string, |
||
| 18 | * expires?: string, |
||
| 19 | * content-length?: int, |
||
| 20 | * content-type?: string, |
||
| 21 | * server?: string |
||
| 22 | * }|array<string|int, string|int> $headers |
||
| 23 | * @param string|null $data |
||
| 24 | */ |
||
| 25 | 22 | public function __construct( |
|
| 34 |