Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | abstract class AbstractSuggester |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @return AbstractSuggestQuery |
||
13 | */ |
||
14 | abstract protected function getQuery(); |
||
15 | |||
16 | |||
17 | /** |
||
18 | * @param string $searchTerm |
||
19 | * @param string[] $fields |
||
20 | * @param int $limit |
||
21 | * @return Result |
||
22 | */ |
||
23 | public function suggestByFields($searchTerm, $fields, $limit = 10) |
||
36 | } |
||
37 | } |