| 1 | <?php declare(strict_types = 1); |
||
| 5 | class Response |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @var ResponseCode |
||
| 10 | */ |
||
| 11 | private $responseCode; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var mixed[]|null |
||
| 15 | */ |
||
| 16 | private $data; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string[] |
||
| 20 | */ |
||
| 21 | private $headers; |
||
| 22 | |||
| 23 | /** @var mixed[] */ |
||
| 24 | private $extensions; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param ResponseCode $responseCode |
||
| 28 | * @param mixed[]|null $data |
||
| 29 | * @param string[] $headers |
||
| 30 | * @param mixed[] $extensions |
||
| 31 | */ |
||
| 32 | public function __construct( |
||
| 44 | |||
| 45 | public function getResponseCode(): ResponseCode |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return mixed[]|null |
||
| 52 | */ |
||
| 53 | public function getData() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return string[] |
||
| 60 | */ |
||
| 61 | public function getHeaders(): array |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return mixed[] |
||
| 68 | */ |
||
| 69 | public function getExtensions(): array |
||
| 73 | |||
| 74 | } |
||
| 75 |