1 | <?php |
||
12 | final class Stack |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $client; |
||
18 | |||
19 | /** |
||
20 | * @var Stack |
||
21 | */ |
||
22 | private $parent; |
||
23 | |||
24 | /** |
||
25 | * @var Profile[] |
||
26 | */ |
||
27 | private $profiles = []; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $request; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $response; |
||
38 | |||
39 | /** |
||
40 | * @var bool |
||
41 | */ |
||
42 | private $failed = false; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | private $requestTarget; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | private $requestMethod; |
||
53 | |||
54 | /** |
||
55 | * @var string |
||
56 | */ |
||
57 | private $requestHost; |
||
58 | |||
59 | /** |
||
60 | * @var string |
||
61 | */ |
||
62 | private $requestScheme; |
||
63 | |||
64 | /** |
||
65 | * @var string |
||
66 | */ |
||
67 | private $clientRequest; |
||
68 | |||
69 | /** |
||
70 | * @var string |
||
71 | */ |
||
72 | private $clientResponse; |
||
73 | |||
74 | /** |
||
75 | * @var string |
||
76 | */ |
||
77 | private $clientException; |
||
78 | |||
79 | /** |
||
80 | * @var int |
||
81 | */ |
||
82 | private $responseCode; |
||
83 | |||
84 | /** |
||
85 | * @var int |
||
86 | */ |
||
87 | private $duration = 0; |
||
88 | |||
89 | /** |
||
90 | * @var string |
||
91 | */ |
||
92 | private $curlCommand; |
||
93 | |||
94 | /** |
||
95 | * @param string $client |
||
96 | * @param string $request |
||
97 | */ |
||
98 | 23 | public function __construct($client, $request) |
|
103 | |||
104 | /** |
||
105 | * @return string |
||
106 | */ |
||
107 | 3 | public function getClient() |
|
111 | |||
112 | /** |
||
113 | * @return Stack |
||
114 | */ |
||
115 | 8 | public function getParent() |
|
119 | |||
120 | /** |
||
121 | * @param Stack $parent |
||
122 | */ |
||
123 | 2 | public function setParent(self $parent) |
|
127 | |||
128 | /** |
||
129 | * @param Profile $profile |
||
130 | */ |
||
131 | 8 | public function addProfile(Profile $profile) |
|
135 | |||
136 | /** |
||
137 | * @return Profile[] |
||
138 | */ |
||
139 | 4 | public function getProfiles() |
|
143 | |||
144 | /** |
||
145 | * @return string |
||
146 | */ |
||
147 | 1 | public function getRequest() |
|
151 | |||
152 | /** |
||
153 | * @return string |
||
154 | */ |
||
155 | 1 | public function getResponse() |
|
159 | |||
160 | /** |
||
161 | * @param string $response |
||
162 | */ |
||
163 | 5 | public function setResponse($response) |
|
167 | |||
168 | /** |
||
169 | * @return bool |
||
170 | */ |
||
171 | public function isFailed() |
||
175 | |||
176 | /** |
||
177 | * @param bool $failed |
||
178 | */ |
||
179 | 1 | public function setFailed($failed) |
|
183 | |||
184 | /** |
||
185 | * @return string |
||
186 | */ |
||
187 | 10 | public function getRequestTarget() |
|
191 | |||
192 | /** |
||
193 | * @param string $requestTarget |
||
194 | */ |
||
195 | 12 | public function setRequestTarget($requestTarget) |
|
199 | |||
200 | /** |
||
201 | * @return string |
||
202 | */ |
||
203 | 10 | public function getRequestMethod() |
|
207 | |||
208 | /** |
||
209 | * @param string $requestMethod |
||
210 | */ |
||
211 | 12 | public function setRequestMethod($requestMethod) |
|
215 | |||
216 | /** |
||
217 | * @return string |
||
218 | */ |
||
219 | 8 | public function getClientRequest() |
|
223 | |||
224 | /** |
||
225 | * @param string $clientRequest |
||
226 | */ |
||
227 | 12 | public function setClientRequest($clientRequest) |
|
231 | |||
232 | /** |
||
233 | * @return mixed |
||
234 | */ |
||
235 | 1 | public function getClientResponse() |
|
239 | |||
240 | /** |
||
241 | * @param mixed $clientResponse |
||
242 | */ |
||
243 | 5 | public function setClientResponse($clientResponse) |
|
247 | |||
248 | /** |
||
249 | * @return string |
||
250 | */ |
||
251 | 1 | public function getClientException() |
|
255 | |||
256 | /** |
||
257 | * @param string $clientException |
||
258 | */ |
||
259 | 1 | public function setClientException($clientException) |
|
263 | |||
264 | /** |
||
265 | * @return int |
||
266 | */ |
||
267 | 1 | public function getResponseCode() |
|
271 | |||
272 | /** |
||
273 | * @param int $responseCode |
||
274 | */ |
||
275 | 5 | public function setResponseCode($responseCode) |
|
279 | |||
280 | /** |
||
281 | * @return string |
||
282 | */ |
||
283 | 10 | public function getRequestHost() |
|
287 | |||
288 | /** |
||
289 | * @param string $requestHost |
||
290 | */ |
||
291 | 12 | public function setRequestHost($requestHost) |
|
295 | |||
296 | /** |
||
297 | * @return string |
||
298 | */ |
||
299 | 10 | public function getRequestScheme() |
|
303 | |||
304 | /** |
||
305 | * @param string $requestScheme |
||
306 | */ |
||
307 | 12 | public function setRequestScheme($requestScheme) |
|
311 | |||
312 | /** |
||
313 | * @return int |
||
314 | */ |
||
315 | 2 | public function getDuration() |
|
319 | |||
320 | /** |
||
321 | * @param int $duration |
||
322 | */ |
||
323 | 6 | public function setDuration($duration) |
|
327 | |||
328 | /** |
||
329 | * @return string |
||
330 | */ |
||
331 | 8 | public function getCurlCommand() |
|
335 | |||
336 | /** |
||
337 | * @param string $curlCommand |
||
338 | */ |
||
339 | 12 | public function setCurlCommand($curlCommand) |
|
343 | |||
344 | /** |
||
345 | * @return string |
||
346 | */ |
||
347 | public function getClientSlug() |
||
351 | } |
||
352 |
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..