1 | <?php |
||
16 | class ResultSetAdapter implements ResultSet { |
||
17 | |||
18 | /** |
||
19 | * |
||
20 | * @var FacetSet |
||
21 | */ |
||
22 | protected $facets = null; |
||
23 | |||
24 | /** |
||
25 | * |
||
26 | * @var Document[] |
||
27 | */ |
||
28 | protected $results = array(); |
||
29 | |||
30 | public function setFacets(FacetSet $facets) { |
||
33 | |||
34 | /** |
||
35 | * |
||
36 | * {@inheritdoc} |
||
37 | * |
||
38 | * @see \StingerSoft\EntitySearchBundle\Model\ResultSet::getFacets() |
||
39 | */ |
||
40 | public function getFacets() { |
||
43 | |||
44 | /** |
||
45 | * |
||
46 | * {@inheritdoc} |
||
47 | * |
||
48 | * @see \StingerSoft\EntitySearchBundle\Model\ResultSet::getResults() |
||
49 | */ |
||
50 | public function getResults($offset = 0, $limit = null) { |
||
53 | |||
54 | /** |
||
55 | * |
||
56 | * @param Document[] $results |
||
57 | */ |
||
58 | public function setResults(array $results) { |
||
61 | |||
62 | /** |
||
63 | * |
||
64 | * {@inheritdoc} |
||
65 | * |
||
66 | * @see \StingerSoft\EntitySearchBundle\Model\ResultSet::getExcerpt() |
||
67 | */ |
||
68 | public function getExcerpt(Document $document) { |
||
71 | |||
72 | /** |
||
73 | * |
||
74 | * {@inheritdoc} |
||
75 | * |
||
76 | * @see \StingerSoft\EntitySearchBundle\Model\ResultSet::getCorrections() |
||
77 | */ |
||
78 | public function getCorrections() { |
||
81 | } |