1 | <?php |
||
43 | class SearchResultSet |
||
44 | { |
||
45 | |||
46 | /** |
||
47 | * @var Query |
||
48 | */ |
||
49 | protected $usedQuery = null; |
||
50 | |||
51 | /** |
||
52 | * @var SearchRequest |
||
53 | */ |
||
54 | protected $usedSearchRequest = null; |
||
55 | |||
56 | /** |
||
57 | * @var Search |
||
58 | */ |
||
59 | protected $usedSearch; |
||
60 | |||
61 | /** |
||
62 | * @var \Apache_Solr_Response |
||
63 | */ |
||
64 | protected $response = null; |
||
65 | |||
66 | /** |
||
67 | * @var int |
||
68 | */ |
||
69 | protected $usedPage = 0; |
||
70 | |||
71 | /** |
||
72 | * @var int |
||
73 | */ |
||
74 | protected $usedResultsPerPage = 0; |
||
75 | |||
76 | /** |
||
77 | * @var array |
||
78 | */ |
||
79 | protected $usedAdditionalFilters = []; |
||
80 | |||
81 | /** |
||
82 | * @var array |
||
83 | */ |
||
84 | protected $searchResults = []; |
||
85 | |||
86 | /** |
||
87 | * @var int |
||
88 | */ |
||
89 | protected $allResultCount = 0; |
||
90 | |||
91 | /** |
||
92 | * @var Suggestion[] |
||
93 | */ |
||
94 | protected $spellCheckingSuggestions = []; |
||
95 | |||
96 | /** |
||
97 | * @var FacetCollection |
||
98 | */ |
||
99 | protected $facets = null; |
||
100 | |||
101 | /** |
||
102 | * @var SortingCollection |
||
103 | */ |
||
104 | protected $sortings = null; |
||
105 | |||
106 | /** |
||
107 | * @var bool |
||
108 | */ |
||
109 | 85 | protected $isAutoCorrected = false; |
|
110 | |||
111 | 85 | /** |
|
112 | 85 | * @var string |
|
113 | 85 | */ |
|
114 | protected $initialQueryString = ''; |
||
115 | |||
116 | /** |
||
117 | * @var string |
||
118 | 59 | */ |
|
119 | protected $correctedQueryString = ''; |
||
120 | 59 | ||
121 | 59 | /** |
|
122 | * @return \ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet |
||
|
|||
123 | */ |
||
124 | public function __construct() |
||
129 | |||
130 | /** |
||
131 | * @param int $allResultCount |
||
132 | */ |
||
133 | public function setAllResultCount($allResultCount) |
||
137 | 4 | ||
138 | /** |
||
139 | * @return int |
||
140 | */ |
||
141 | public function getAllResultCount() |
||
145 | |||
146 | /** |
||
147 | * @param Suggestion $suggestion |
||
148 | */ |
||
149 | public function addSpellCheckingSuggestion(Suggestion $suggestion) |
||
153 | |||
154 | /** |
||
155 | * @return bool |
||
156 | */ |
||
157 | public function getHasSpellCheckingSuggestions() |
||
161 | |||
162 | /** |
||
163 | * @param \ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Spellchecking\Suggestion[] $spellCheckingSuggestions |
||
164 | */ |
||
165 | public function setSpellCheckingSuggestions($spellCheckingSuggestions) |
||
169 | |||
170 | /** |
||
171 | * @return \ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Spellchecking\Suggestion[] |
||
172 | */ |
||
173 | public function getSpellCheckingSuggestions() |
||
177 | 54 | ||
178 | /** |
||
179 | * @return FacetCollection |
||
180 | */ |
||
181 | public function getFacets() |
||
185 | 28 | ||
186 | /** |
||
187 | * @param AbstractFacet $facet |
||
188 | */ |
||
189 | public function addFacet(AbstractFacet $facet) |
||
193 | |||
194 | /** |
||
195 | * @param Sorting $sorting |
||
196 | */ |
||
197 | public function addSorting(Sorting $sorting) |
||
201 | 77 | ||
202 | /** |
||
203 | * @return SortingCollection |
||
204 | */ |
||
205 | public function getSortings() |
||
209 | |||
210 | /** |
||
211 | * @param \Apache_Solr_Response $response |
||
212 | */ |
||
213 | public function setResponse($response) |
||
217 | 37 | ||
218 | /** |
||
219 | * @return \Apache_Solr_Response |
||
220 | */ |
||
221 | public function getResponse() |
||
225 | |||
226 | /** |
||
227 | * @param array $usedAdditionalFilters |
||
228 | */ |
||
229 | public function setUsedAdditionalFilters($usedAdditionalFilters) |
||
233 | 37 | ||
234 | /** |
||
235 | * @return array |
||
236 | */ |
||
237 | public function getUsedAdditionalFilters() |
||
241 | |||
242 | 29 | /** |
|
243 | * @param \ApacheSolrForTypo3\Solr\Query $usedQuery |
||
244 | */ |
||
245 | public function setUsedQuery($usedQuery) |
||
249 | |||
250 | 37 | /** |
|
251 | 37 | * Retrieves the query object that has been used to build this result set. |
|
252 | * |
||
253 | * @return \ApacheSolrForTypo3\Solr\Query |
||
254 | */ |
||
255 | public function getUsedQuery() |
||
259 | |||
260 | 26 | /** |
|
261 | * @param int $page |
||
262 | */ |
||
263 | public function setUsedPage($page) |
||
267 | |||
268 | /** |
||
269 | * Retrieve the page argument that has been used to build this SearchResultSet. |
||
270 | * |
||
271 | * @return int |
||
272 | */ |
||
273 | public function getUsedPage() |
||
277 | 80 | ||
278 | /** |
||
279 | * @return int |
||
280 | */ |
||
281 | public function getResultsPerPage() |
||
285 | |||
286 | 80 | /** |
|
287 | * @param \ApacheSolrForTypo3\Solr\Domain\Search\SearchRequest $usedSearchRequest |
||
288 | */ |
||
289 | public function setUsedSearchRequest($usedSearchRequest) |
||
293 | |||
294 | 37 | /** |
|
295 | 37 | * Retrieves the SearchRequest that has been used to build this SearchResultSet. |
|
296 | * |
||
297 | * @return \ApacheSolrForTypo3\Solr\Domain\Search\SearchRequest |
||
298 | */ |
||
299 | public function getUsedSearchRequest() |
||
303 | |||
304 | /** |
||
305 | * @param \ApacheSolrForTypo3\Solr\Search $usedSearch |
||
306 | */ |
||
307 | public function setUsedSearch($usedSearch) |
||
311 | 37 | ||
312 | /** |
||
313 | * @return \ApacheSolrForTypo3\Solr\Search |
||
314 | */ |
||
315 | public function getUsedSearch() |
||
319 | |||
320 | /** |
||
321 | * @param int $usedResultsPerPage |
||
322 | */ |
||
323 | public function setUsedResultsPerPage($usedResultsPerPage) |
||
327 | |||
328 | /** |
||
329 | * @return int |
||
330 | */ |
||
331 | public function getUsedResultsPerPage() |
||
335 | |||
336 | /** |
||
337 | * @return array |
||
338 | */ |
||
339 | public function getSearchResults() |
||
343 | 26 | ||
344 | /** |
||
345 | * @param array $searchResults |
||
346 | */ |
||
347 | public function setSearchResults($searchResults) |
||
351 | |||
352 | /** |
||
353 | * @param SearchResult $searchResult |
||
354 | */ |
||
355 | public function addSearchResult(SearchResult $searchResult) |
||
359 | |||
360 | /** |
||
361 | * @return boolean |
||
362 | */ |
||
363 | public function getIsAutoCorrected() |
||
367 | |||
368 | /** |
||
369 | * @param boolean $wasAutoCorrected |
||
370 | */ |
||
371 | public function setIsAutoCorrected($wasAutoCorrected) |
||
375 | |||
376 | /** |
||
377 | * @return string |
||
378 | */ |
||
379 | public function getInitialQueryString() |
||
383 | |||
384 | /** |
||
385 | * @param string $initialQueryString |
||
386 | */ |
||
387 | public function setInitialQueryString($initialQueryString) |
||
391 | |||
392 | /** |
||
393 | * @return string |
||
394 | */ |
||
395 | public function getCorrectedQueryString() |
||
399 | |||
400 | /** |
||
401 | * @param string $correctedQueryString |
||
402 | */ |
||
403 | public function setCorrectedQueryString($correctedQueryString) |
||
407 | } |
||
408 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.