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 | * Returns the current category ID |
||
140 | * |
||
141 | * @return array |
||
142 | */ |
||
143 | public function getCategoryIds() |
||
147 | |||
148 | /** |
||
149 | * Sets the current category ID |
||
150 | * |
||
151 | * @param array $categoryIds |
||
152 | */ |
||
153 | public function setCategoryIds(Array $categoryIds) |
||
157 | |||
158 | /** |
||
159 | * Returns the current language, empty string if all languages |
||
160 | * |
||
161 | * @return string |
||
162 | */ |
||
163 | public function getLanguage() |
||
167 | |||
168 | /** |
||
169 | * Sets the current language |
||
170 | * |
||
171 | * @param string $language |
||
172 | */ |
||
173 | public function setLanguage($language) |
||
177 | } |
||
178 |
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..