1 | <?php |
||
25 | class SolrAdapter implements AdapterInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var \SolrClient |
||
29 | */ |
||
30 | protected $client; |
||
31 | |||
32 | /** |
||
33 | * @var Parameters |
||
34 | */ |
||
35 | protected $params; |
||
36 | |||
37 | /** |
||
38 | * @var int |
||
39 | */ |
||
40 | protected $count; |
||
41 | |||
42 | /** |
||
43 | * @var \SolrQuery |
||
44 | */ |
||
45 | protected $query; |
||
46 | |||
47 | /** |
||
48 | * Store current query response from solr server |
||
49 | * |
||
50 | * @var \SolrQueryResponse |
||
51 | */ |
||
52 | protected $response; |
||
53 | |||
54 | /** |
||
55 | * @var AbstractPaginationQuery |
||
56 | */ |
||
57 | protected $filter; |
||
58 | |||
59 | /** |
||
60 | * @var ResultConverter |
||
61 | */ |
||
62 | protected $resultConverter; |
||
63 | |||
64 | /** |
||
65 | * SolrAdapter constructor. |
||
66 | * |
||
67 | * @param \SolrClient $client |
||
68 | * @param AbstractPaginationQuery $filter |
||
69 | * @param ResultConverter $resultConverter |
||
70 | * @param array $params |
||
71 | */ |
||
72 | public function __construct($client,$filter,$resultConverter,$params=array()) |
||
79 | |||
80 | /** |
||
81 | * @inheritdoc |
||
82 | */ |
||
83 | public function getItems($offset, $itemCountPerPage) |
||
90 | |||
91 | /** |
||
92 | * @inheritdoc |
||
93 | * @return mixed |
||
94 | * @throws \Exception |
||
95 | */ |
||
96 | public function count() |
||
101 | |||
102 | /** |
||
103 | * Process query into server |
||
104 | * |
||
105 | * @param int $offset |
||
106 | * @param int $itemCountPerPage |
||
107 | * @return \SolrQueryResponse |
||
108 | * @throws \Exception |
||
109 | */ |
||
110 | protected function getResponse($offset=0,$itemCountPerPage=5) |
||
126 | } |
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..