1 | <?php |
||
17 | class Correction { |
||
18 | |||
19 | /** |
||
20 | * The corrected query |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $query; |
||
25 | |||
26 | /** |
||
27 | * The amount of hit for the corrected query. |
||
28 | * <code>NULL</code> if the search service cannot predict it |
||
29 | * |
||
30 | * @var integer |
||
31 | */ |
||
32 | protected $hits; |
||
33 | |||
34 | /** |
||
35 | * Gets the corrected query |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getQuery() { |
||
42 | |||
43 | /** |
||
44 | * Sets the corrected query |
||
45 | * |
||
46 | * @param string $query |
||
47 | * @return \Model\Result\Correction |
||
48 | */ |
||
49 | public function setQuery($query) { |
||
53 | |||
54 | /** |
||
55 | * Gets the amount of hit for the corrected query. |
||
56 | * <code>NULL</code> if the search service cannot predict it |
||
57 | * |
||
58 | * @return number |
||
59 | */ |
||
60 | public function getHits() { |
||
63 | |||
64 | /** |
||
65 | * Sets the amount of hit for the corrected query. |
||
66 | * <code>NULL</code> if the search service cannot predict it |
||
67 | * |
||
68 | * @param integer $hits |
||
69 | * @return \Model\Result\Correction |
||
70 | */ |
||
71 | public function setHits($hits) { |
||
75 | } |
||
76 | |||
77 |