1 | <?php |
||
14 | final class Stack |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $client; |
||
20 | |||
21 | /** |
||
22 | * @var Stack |
||
23 | */ |
||
24 | private $parent; |
||
25 | |||
26 | /** |
||
27 | * @var Profile[] |
||
28 | */ |
||
29 | private $profiles = []; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $request; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private $response; |
||
40 | |||
41 | /** |
||
42 | * @var bool |
||
43 | */ |
||
44 | private $failed = false; |
||
45 | |||
46 | /** |
||
47 | * @var string |
||
48 | */ |
||
49 | private $requestTarget; |
||
50 | |||
51 | /** |
||
52 | * @var string |
||
53 | */ |
||
54 | private $requestMethod; |
||
55 | |||
56 | /** |
||
57 | * @var string |
||
58 | */ |
||
59 | private $requestHost; |
||
60 | |||
61 | /** |
||
62 | * @var string |
||
63 | */ |
||
64 | private $requestScheme; |
||
65 | |||
66 | /** |
||
67 | * @var string |
||
68 | */ |
||
69 | private $clientRequest; |
||
70 | |||
71 | /** |
||
72 | * @var string |
||
73 | */ |
||
74 | private $clientResponse; |
||
75 | |||
76 | /** |
||
77 | * @var string |
||
78 | */ |
||
79 | private $clientException; |
||
80 | |||
81 | /** |
||
82 | * @var int |
||
83 | */ |
||
84 | private $responseCode; |
||
85 | |||
86 | /** |
||
87 | * @var int |
||
88 | */ |
||
89 | private $duration = 0; |
||
90 | |||
91 | /** |
||
92 | * @var string |
||
93 | */ |
||
94 | private $curlCommand; |
||
95 | |||
96 | /** |
||
97 | * @param string $client |
||
98 | * @param string $request |
||
99 | */ |
||
100 | 25 | public function __construct($client, $request) |
|
105 | |||
106 | /** |
||
107 | * @return string |
||
108 | */ |
||
109 | 3 | public function getClient() |
|
113 | |||
114 | /** |
||
115 | * @return Stack |
||
116 | */ |
||
117 | 9 | public function getParent() |
|
121 | |||
122 | /** |
||
123 | * @param Stack $parent |
||
124 | */ |
||
125 | 2 | public function setParent(self $parent) |
|
129 | |||
130 | 9 | public function addProfile(Profile $profile) |
|
134 | |||
135 | /** |
||
136 | * @return Profile[] |
||
137 | */ |
||
138 | 4 | public function getProfiles() |
|
142 | |||
143 | /** |
||
144 | * @return string |
||
145 | */ |
||
146 | 1 | public function getRequest() |
|
150 | |||
151 | /** |
||
152 | * @return string |
||
153 | */ |
||
154 | 1 | public function getResponse() |
|
158 | |||
159 | /** |
||
160 | * @param string $response |
||
161 | */ |
||
162 | 6 | public function setResponse($response) |
|
166 | |||
167 | /** |
||
168 | * @return bool |
||
169 | */ |
||
170 | public function isFailed() |
||
174 | |||
175 | /** |
||
176 | * @param bool $failed |
||
177 | */ |
||
178 | 1 | public function setFailed($failed) |
|
182 | |||
183 | /** |
||
184 | * @return string |
||
185 | */ |
||
186 | 11 | public function getRequestTarget() |
|
190 | |||
191 | /** |
||
192 | * @param string $requestTarget |
||
193 | */ |
||
194 | 14 | public function setRequestTarget($requestTarget) |
|
198 | |||
199 | /** |
||
200 | * @return string |
||
201 | */ |
||
202 | 11 | public function getRequestMethod() |
|
206 | |||
207 | /** |
||
208 | * @param string $requestMethod |
||
209 | */ |
||
210 | 14 | public function setRequestMethod($requestMethod) |
|
214 | |||
215 | /** |
||
216 | * @return string |
||
217 | */ |
||
218 | 9 | public function getClientRequest() |
|
222 | |||
223 | /** |
||
224 | * @param string $clientRequest |
||
225 | */ |
||
226 | 14 | public function setClientRequest($clientRequest) |
|
230 | |||
231 | /** |
||
232 | * @return mixed |
||
233 | */ |
||
234 | 1 | public function getClientResponse() |
|
238 | |||
239 | /** |
||
240 | * @param mixed $clientResponse |
||
241 | */ |
||
242 | 6 | public function setClientResponse($clientResponse) |
|
246 | |||
247 | /** |
||
248 | * @return string |
||
249 | */ |
||
250 | 1 | public function getClientException() |
|
254 | |||
255 | /** |
||
256 | * @param string $clientException |
||
257 | */ |
||
258 | 2 | public function setClientException($clientException) |
|
262 | |||
263 | /** |
||
264 | * @return int |
||
265 | */ |
||
266 | 1 | public function getResponseCode() |
|
270 | |||
271 | /** |
||
272 | * @param int $responseCode |
||
273 | */ |
||
274 | 6 | public function setResponseCode($responseCode) |
|
278 | |||
279 | /** |
||
280 | * @return string |
||
281 | */ |
||
282 | 11 | public function getRequestHost() |
|
286 | |||
287 | /** |
||
288 | * @param string $requestHost |
||
289 | */ |
||
290 | 14 | public function setRequestHost($requestHost) |
|
294 | |||
295 | /** |
||
296 | * @return string |
||
297 | */ |
||
298 | 11 | public function getRequestScheme() |
|
302 | |||
303 | /** |
||
304 | * @param string $requestScheme |
||
305 | */ |
||
306 | 14 | public function setRequestScheme($requestScheme) |
|
310 | |||
311 | /** |
||
312 | * @return int |
||
313 | */ |
||
314 | 2 | public function getDuration() |
|
318 | |||
319 | /** |
||
320 | * @param int $duration |
||
321 | */ |
||
322 | 8 | public function setDuration($duration) |
|
326 | |||
327 | /** |
||
328 | * @return string |
||
329 | */ |
||
330 | 9 | public function getCurlCommand() |
|
334 | |||
335 | /** |
||
336 | * @param string $curlCommand |
||
337 | */ |
||
338 | 14 | public function setCurlCommand($curlCommand) |
|
342 | |||
343 | /** |
||
344 | * @return string |
||
345 | */ |
||
346 | public function getClientSlug() |
||
350 | } |
||
351 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..