From 4c4e9ffe36385f5b5c69c02b38741af98516ea19 Mon Sep 17 00:00:00 2001 From: Cassiano Date: Wed, 8 Oct 2014 14:27:50 -0300 Subject: [PATCH] Update RawPartialResults.php --- Paginator/RawPartialResults.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Paginator/RawPartialResults.php b/Paginator/RawPartialResults.php index a4afb00..908986f 100644 --- a/Paginator/RawPartialResults.php +++ b/Paginator/RawPartialResults.php @@ -49,4 +49,16 @@ class RawPartialResults implements PartialResultsInterface return null; } -} \ No newline at end of file + + /** + * {@inheritDoc} + */ + public function getAggregations() + { + if ($this->resultSet->hasAggregations()) { + return $this->resultSet->getAggregations(); + } + + return null; + } +}