1 | <?php |
||
19 | abstract class SearchAbstract |
||
20 | { |
||
21 | /** |
||
22 | * Facade para Single query, obtendo apenas os resultados (matches). |
||
23 | * |
||
24 | * @param string $index |
||
25 | */ |
||
26 | public function search($index, array $filters = null, |
||
39 | |||
40 | /** |
||
41 | * Executa Queries. |
||
42 | * |
||
43 | * @see \Gpupo\Search\Query\FiltersAbstract::toArray() Filter Array Sintaxe |
||
44 | * @see \Gpupo\Search\Query\QueryAbstract::getQueries() Query Array Sintaxe |
||
45 | * @see \Gpupo\Search\Query\QueryAbstract::getFieldWeights() Query Array Sintaxe |
||
46 | * |
||
47 | * @param array $filter Search filter |
||
|
|||
48 | * @param array $queries Search query |
||
49 | * @param array $fieldWeights Field weights array |
||
50 | * @param int $limit |
||
51 | * @param int $offset |
||
52 | * |
||
53 | * @return array Results |
||
54 | */ |
||
55 | public function query($index, array $filters = null, |
||
111 | |||
112 | /** |
||
113 | * RunQueries() + validate. |
||
114 | * |
||
115 | * - Single Query: Resultados da Query |
||
116 | * |
||
117 | * - Multi Query: Array de Resultados das Querys |
||
118 | * |
||
119 | * Formato de cada Resultado: |
||
120 | * |
||
121 | * <code> |
||
122 | * //Results |
||
123 | * array( |
||
124 | * array( |
||
125 | * 'id' => 12345, |
||
126 | * 'weight' => 30, |
||
127 | * 'attrs' => array(...) |
||
128 | * ), |
||
129 | * array( |
||
130 | * 'id' => 23456, |
||
131 | * 'weight' => 20, |
||
132 | * 'attrs' => array(...) |
||
133 | * ), |
||
134 | * ... |
||
135 | * ); |
||
136 | * </code> |
||
137 | * |
||
138 | * @param \SphinxClient $sphinxClient |
||
139 | * |
||
140 | * @throws \Exception |
||
141 | * |
||
142 | * @return array |
||
143 | */ |
||
144 | protected function getResult(\SphinxClient $sphinxClient) |
||
177 | |||
178 | /** |
||
179 | * Transforma uma query array em uma string usada na |
||
180 | * query do Client Sphinx Search. |
||
181 | * |
||
182 | * @param array $queryInfo |
||
183 | * |
||
184 | * @return string |
||
185 | */ |
||
186 | protected function implodeQueryValues(array $queryInfo) |
||
196 | |||
197 | /** |
||
198 | * Facade para query, obtendo resultados em objeto. |
||
199 | */ |
||
200 | public function getCollection($index, array $filters = null, |
||
226 | } |
||
227 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.