1 | <?php |
||
35 | class PMF_Search_Elasticsearch extends PMF_Search_Abstract implements PMF_Search_Interface |
||
36 | { |
||
37 | /** @var Client */ |
||
38 | private $client = null; |
||
39 | |||
40 | /** @var array */ |
||
41 | private $esConfig = []; |
||
42 | |||
43 | /** @var string */ |
||
44 | private $language = ''; |
||
45 | |||
46 | /** @var array */ |
||
47 | private $categoryIds = []; |
||
48 | |||
49 | /** |
||
50 | * Constructor. |
||
51 | * |
||
52 | * @param PMF_Configuration |
||
53 | */ |
||
54 | public function __construct(PMF_Configuration $config) |
||
61 | |||
62 | /** |
||
63 | * Prepares the search and executes it. |
||
64 | * |
||
65 | * @param string $searchTerm Search term |
||
66 | * |
||
67 | * @throws PMF_Search_Exception |
||
68 | * |
||
69 | * @return array |
||
70 | */ |
||
71 | public function search($searchTerm) |
||
137 | |||
138 | /** |
||
139 | * Prepares the autocomplete search and executes it. |
||
140 | * |
||
141 | * @param string $searchTerm Search term for autocompletion |
||
142 | * |
||
143 | * @throws PMF_Search_Exception |
||
144 | * |
||
145 | * @return array |
||
146 | */ |
||
147 | public function autocomplete($searchTerm) |
||
152 | |||
153 | /** |
||
154 | * Returns the current category ID |
||
155 | * |
||
156 | * @return array |
||
157 | */ |
||
158 | public function getCategoryIds() |
||
162 | |||
163 | /** |
||
164 | * Sets the current category ID |
||
165 | * |
||
166 | * @param array $categoryIds |
||
167 | */ |
||
168 | public function setCategoryIds(Array $categoryIds) |
||
172 | |||
173 | /** |
||
174 | * Returns the current language, empty string if all languages |
||
175 | * |
||
176 | * @return string |
||
177 | */ |
||
178 | public function getLanguage() |
||
182 | |||
183 | /** |
||
184 | * Sets the current language |
||
185 | * |
||
186 | * @param string $language |
||
187 | */ |
||
188 | public function setLanguage($language) |
||
192 | } |
||
193 |
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..