1 | <?php |
||
8 | class ApiClient |
||
9 | { |
||
10 | const RESPONSE_OK = 200; |
||
11 | const RESPONSE_OK_NO_BODY = 204; |
||
12 | |||
13 | /** |
||
14 | * @var \GuzzleHttp\Client |
||
15 | */ |
||
16 | private $client; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $uniqueId; |
||
22 | |||
23 | /** |
||
24 | * @var \Hek\Interfaces\Configuration |
||
25 | */ |
||
26 | private $configuration; |
||
27 | |||
28 | /** |
||
29 | * @var \Psr\Log\LoggerInterface |
||
30 | */ |
||
31 | private $logger; |
||
32 | |||
33 | /** |
||
34 | * @param Interfaces\Configuration $configuration |
||
35 | * @param \Psr\Log\LoggerInterface $logger |
||
36 | */ |
||
37 | 8 | public function __construct( |
|
46 | |||
47 | /** |
||
48 | * @param $client |
||
49 | * @return Client |
||
50 | */ |
||
51 | 4 | public function setClient($client) |
|
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | 8 | public function getUniqueId() |
|
68 | |||
69 | /** |
||
70 | * @param string $uniqueId |
||
71 | * @return Client |
||
72 | */ |
||
73 | 4 | public function setUniqueId($uniqueId) |
|
78 | |||
79 | /** |
||
80 | * @return \GuzzleHttp\Client |
||
81 | */ |
||
82 | 6 | public function getClient() |
|
108 | |||
109 | /** |
||
110 | * @param Interfaces\Context $context |
||
111 | * @return void |
||
112 | */ |
||
113 | 3 | public function execute(Interfaces\Context $context) |
|
158 | |||
159 | /** |
||
160 | * @param string $url |
||
161 | * @param array $options |
||
162 | * @return void |
||
163 | */ |
||
164 | 3 | private function logRequest($url, $options) |
|
175 | |||
176 | /** |
||
177 | * @param \GuzzleHttp\Message\ResponseInterface $response |
||
178 | * @return void |
||
179 | */ |
||
180 | 2 | private function logResponse( |
|
192 | |||
193 | /** |
||
194 | * @param \GuzzleHttp\Message\ResponseInterface $response |
||
195 | * @return bool |
||
196 | */ |
||
197 | 2 | private function checkResponse( |
|
210 | |||
211 | /** |
||
212 | * Gets the value of configuration |
||
213 | * |
||
214 | * @return Interfaces\Configuration |
||
215 | */ |
||
216 | 5 | public function getConfiguration() |
|
220 | |||
221 | /** |
||
222 | * Sets the value of Configuration |
||
223 | * |
||
224 | * @param Interfaces\Configuration $configuration |
||
225 | * @return Client |
||
226 | */ |
||
227 | 8 | public function setConfiguration(Interfaces\Configuration $configuration) |
|
232 | } |
||
233 |
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..