1 | <?php |
||
20 | class DocumentIterator extends AbstractResultsIterator |
||
21 | { |
||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $aggregations; |
||
|
|||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function __construct(array $rawData, Manager $manager, array $scroll = []) |
||
39 | |||
40 | /** |
||
41 | * Returns aggregations. |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | public function getAggregations() |
||
55 | |||
56 | /** |
||
57 | * Get a specific aggregation by name. It fetches from the top level only. |
||
58 | * |
||
59 | * @param string $name |
||
60 | * |
||
61 | * @return AggregationValue|null |
||
62 | */ |
||
63 | public function getAggregation($name) |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | protected function convertDocument(array $document) |
||
79 | } |
||
80 |