Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class SolrSearchQueryWriterBasic extends AbstractSearchQueryWriter |
||
13 | { |
||
14 | /** |
||
15 | * @var SearchCriterion $searchCriterion |
||
16 | * @return string |
||
17 | */ |
||
18 | public function generateQueryString(SearchCriterion $searchCriterion) |
||
26 | ); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Is this a positive (+) or negative (-) Solr comparison. |
||
31 | * |
||
32 | * @param string $comparison |
||
33 | * @return string |
||
34 | */ |
||
35 | protected function getComparisonPolarity($comparison) |
||
36 | { |
||
37 | switch ($comparison) { |
||
38 | case SearchCriterion::NOT_EQUAL: |
||
39 | return '-'; |
||
40 | default: |
||
41 | return '+'; |
||
42 | } |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Decide how we are comparing our left and right values. |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | protected function getComparisonConjunction() |
||
53 | } |
||
54 | } |
||
55 |