1 | <?php declare(strict_types=1); |
||
30 | class Sapi implements SapiInterface |
||
31 | { |
||
32 | /** |
||
33 | * @var EmitterInterface |
||
34 | */ |
||
35 | private $sapiEmitter; |
||
36 | |||
37 | /** |
||
38 | * @var array |
||
39 | */ |
||
40 | private $server; |
||
41 | |||
42 | /** |
||
43 | * @var array |
||
44 | */ |
||
45 | private $files; |
||
46 | |||
47 | /** |
||
48 | * @var array |
||
49 | */ |
||
50 | private $headers; |
||
51 | |||
52 | /** |
||
53 | * @var UriInterface |
||
54 | */ |
||
55 | private $uri; |
||
56 | |||
57 | /** |
||
58 | * @var string |
||
59 | */ |
||
60 | private $method; |
||
61 | |||
62 | /** |
||
63 | * @var array |
||
64 | */ |
||
65 | private $cookies; |
||
66 | |||
67 | /** |
||
68 | * @var array |
||
69 | */ |
||
70 | private $queryParams; |
||
71 | |||
72 | /** |
||
73 | * @var array|object |
||
74 | */ |
||
75 | private $parsedBody; |
||
76 | |||
77 | /** |
||
78 | * @var string|resource|StreamInterface |
||
79 | */ |
||
80 | private $messageBody; |
||
81 | |||
82 | /** |
||
83 | * @var string |
||
84 | */ |
||
85 | private $protocolVersion; |
||
86 | |||
87 | /** |
||
88 | * Sapi constructor. |
||
89 | * |
||
90 | * @param EmitterInterface $sapiEmitter |
||
91 | * @param array|null $server |
||
92 | * @param array|null $queryParams |
||
93 | * @param array|object|null $parsedBody |
||
94 | * @param array|null $cookies |
||
95 | * @param array|null $files |
||
96 | * @param string|resource|StreamInterface $messageBody |
||
97 | * @param string $protocolVersion |
||
98 | * |
||
99 | * @SuppressWarnings(PHPMD.StaticAccess) |
||
100 | * @SuppressWarnings(PHPMD.Superglobals) |
||
101 | */ |
||
102 | 9 | public function __construct( |
|
126 | |||
127 | /** |
||
128 | * @inheritdoc |
||
129 | */ |
||
130 | 7 | public function getServer(): array |
|
134 | |||
135 | /** |
||
136 | * @inheritdoc |
||
137 | */ |
||
138 | 7 | public function getFiles(): array |
|
142 | |||
143 | /** |
||
144 | * @inheritdoc |
||
145 | */ |
||
146 | 7 | public function getHeaders(): array |
|
150 | |||
151 | /** |
||
152 | * @inheritdoc |
||
153 | */ |
||
154 | 9 | public function getUri(): UriInterface |
|
158 | |||
159 | /** |
||
160 | * @inheritdoc |
||
161 | */ |
||
162 | 9 | public function getMethod(): string |
|
166 | |||
167 | /** |
||
168 | * @inheritdoc |
||
169 | */ |
||
170 | 7 | public function getCookies(): array |
|
174 | |||
175 | /** |
||
176 | * @inheritdoc |
||
177 | */ |
||
178 | 7 | public function getQueryParams(): array |
|
182 | |||
183 | /** |
||
184 | * @inheritdoc |
||
185 | */ |
||
186 | 7 | public function getParsedBody() |
|
190 | |||
191 | /** |
||
192 | * @inheritdoc |
||
193 | */ |
||
194 | 7 | public function getRequestBody() |
|
198 | |||
199 | /** |
||
200 | * @inheritdoc |
||
201 | */ |
||
202 | 7 | public function getProtocolVersion(): string |
|
206 | |||
207 | /** |
||
208 | * @inheritdoc |
||
209 | */ |
||
210 | 1 | public function handleResponse(ResponseInterface $response): void |
|
214 | } |
||
215 |
This function has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed from the class and what other function to use instead.