1 | <?php |
||
17 | class SolrAdapter implements AdapterInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var \SolrClient |
||
21 | */ |
||
22 | protected $client; |
||
23 | |||
24 | /** |
||
25 | * @var Parameters |
||
26 | */ |
||
27 | protected $params; |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | protected $count; |
||
33 | |||
34 | /** |
||
35 | * @var \SolrQuery |
||
36 | */ |
||
37 | protected $query; |
||
38 | |||
39 | /** |
||
40 | * Store current query response from solr server |
||
41 | * |
||
42 | * @var \SolrQueryResponse |
||
43 | */ |
||
44 | protected $response; |
||
45 | |||
46 | /** |
||
47 | * @var AbstractPaginationQuery |
||
48 | */ |
||
49 | protected $filter; |
||
50 | |||
51 | /** |
||
52 | * @var ResultConverter |
||
53 | */ |
||
54 | protected $resultConverter; |
||
55 | |||
56 | /** |
||
57 | * SolrAdapter constructor. |
||
58 | * |
||
59 | * @param \SolrClient $client |
||
60 | * @param AbstractPaginationQuery $filter |
||
61 | * @param ResultConverter $resultConverter |
||
62 | * @param array $params |
||
63 | */ |
||
64 | public function __construct($client,$filter,$resultConverter,$params=array()) |
||
71 | |||
72 | /** |
||
73 | * @inheritdoc |
||
74 | */ |
||
75 | public function getItems($offset, $itemCountPerPage) |
||
82 | |||
83 | /** |
||
84 | * @inheritdoc |
||
85 | * @return mixed |
||
86 | * @throws \Exception |
||
87 | */ |
||
88 | public function count() |
||
93 | |||
94 | /** |
||
95 | * Process query into server |
||
96 | * |
||
97 | * @param int $offset |
||
98 | * @param int $itemCountPerPage |
||
99 | * @return \SolrQueryResponse |
||
100 | * @throws \Exception |
||
101 | */ |
||
102 | protected function getResponse($offset=0,$itemCountPerPage=5) |
||
118 | } |
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..