1 | <?php |
||
7 | class Response |
||
8 | { |
||
9 | const CODE_OK = 0; |
||
10 | const CODE_WRONG_PARAMETERS = 1; |
||
11 | const CODE_INTERNAL_ERROR = 2; |
||
12 | const CODE_NO_SUCH_FUNCTION = 3; |
||
13 | const CODE_NO_OR_WRONG_API_KEY = 4; |
||
14 | |||
15 | /** @var \stdClass */ |
||
16 | private $data; |
||
17 | |||
18 | /** |
||
19 | * @param ResponseInterface $response |
||
20 | */ |
||
21 | 4 | public function __construct(ResponseInterface $response) |
|
29 | |||
30 | /** |
||
31 | * @return string|null |
||
32 | */ |
||
33 | 4 | public function getCode() |
|
37 | |||
38 | /** |
||
39 | * @return string|null |
||
40 | */ |
||
41 | 4 | public function getMessage() |
|
45 | |||
46 | /** |
||
47 | * @return string|null |
||
48 | */ |
||
49 | 4 | public function getData() |
|
53 | |||
54 | /** |
||
55 | * @return array |
||
56 | */ |
||
57 | 4 | public function getResponse() |
|
61 | |||
62 | /** |
||
63 | * @param string $key |
||
64 | * @return mixed |
||
65 | */ |
||
66 | 4 | private function getPropertyFromData($key) |
|
70 | } |
||
71 |
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..