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 | * Get a specific aggregation by name. It fetches from the top level only. |
||
42 | * |
||
43 | * @param string $name |
||
44 | * |
||
45 | * @return AggregationValue|null |
||
46 | */ |
||
47 | public function getAggregation($name) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | protected function convertDocument(array $document) |
||
63 | } |
||
64 |