1 | <?php |
||
20 | class RawPartialResults implements PartialResultsInterface |
||
21 | { |
||
22 | protected $resultSet; |
||
23 | |||
24 | 2 | public function __construct(ResultSet $resultSet) |
|
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function toArray() |
||
33 | { |
||
34 | return \array_map(function (Result $result) { |
||
35 | return $result->getSource(); |
||
36 | }, $this->resultSet->getResults()); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function getTotalHits() |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function getAggregations() |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function getSuggests() |
||
70 | } |
||
71 |