From 5675f8098f9ae270229a62a2f5f8bebf9f5759ce Mon Sep 17 00:00:00 2001 From: Aivaras Gotovskis <aivaras.gotovskis@ongr.io> Date: Thu, 9 Jul 2015 16:01:06 +0300 Subject: [PATCH] Add constructor arguments to ReverseNestedAggregation. --- src/Aggregation/ReverseNestedAggregation.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Aggregation/ReverseNestedAggregation.php b/src/Aggregation/ReverseNestedAggregation.php index 3225d74..c833135 100644 --- a/src/Aggregation/ReverseNestedAggregation.php +++ b/src/Aggregation/ReverseNestedAggregation.php @@ -25,6 +25,19 @@ class ReverseNestedAggregation extends AbstractAggregation */ private $path; + /** + * Inner aggregations container init. + * + * @param string $name + * @param string $path + */ + public function __construct($name, $path = null) + { + parent::__construct($name); + + $this->setPath($path); + } + /** * Return path. * -- GitLab