Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
19 | final class Response |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * @Required |
||
24 | * |
||
25 | * @var int |
||
26 | */ |
||
27 | public $code; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | public $description = ''; |
||
33 | |||
34 | /** |
||
35 | * @var array<Sunrise\Http\Router\Annotation\OpenApi\Header> |
||
36 | */ |
||
37 | public $headers = []; |
||
38 | |||
39 | /** |
||
40 | * @var array<Sunrise\Http\Router\Annotation\OpenApi\MediaType> |
||
41 | */ |
||
42 | public $content = []; |
||
43 | |||
44 | /** |
||
45 | * @return array |
||
46 | */ |
||
47 | public function toArray() : array |
||
64 |