1 | <?php |
||
11 | class JsonHandler implements Handler, Collection |
||
12 | { |
||
13 | use XmlConverter; |
||
14 | |||
15 | protected $response; |
||
16 | protected $buildJson; |
||
17 | |||
18 | private $jsonPrefix = 'd'; |
||
19 | private $jsonPrefixWord = 'results'; |
||
20 | private $validText = []; |
||
21 | private $jsonPrefixAllCollection = 'EntitySets'; |
||
22 | |||
23 | 1 | public function getAccept() |
|
27 | |||
28 | 1 | public function getContentType() |
|
32 | |||
33 | 6 | public function parse($parse) |
|
44 | |||
45 | /** |
||
46 | * @param $parse string json |
||
47 | * @return mixed |
||
48 | */ |
||
49 | 5 | private function chooseJsonPrefix($parse) |
|
59 | |||
60 | /** |
||
61 | * @param $response |
||
62 | * @return bool |
||
63 | */ |
||
64 | 8 | public function checkIntegrity($response) |
|
68 | |||
69 | /** |
||
70 | * @return array |
||
71 | */ |
||
72 | 1 | public function toArray() |
|
76 | |||
77 | /** |
||
78 | * @return string json |
||
79 | */ |
||
80 | 1 | public function toJson() |
|
84 | |||
85 | 1 | public function getData() |
|
89 | |||
90 | 1 | public function create(array $data) |
|
97 | |||
98 | 1 | private function objectToArray($data) |
|
120 | |||
121 | } |
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..