diff --git a/src/Aggregation/ReverseNestedAggregation.php b/src/Aggregation/ReverseNestedAggregation.php index 3225d74b2e5983c0ccda7e53aeaab2cff208e3c4..c833135ecf128c0b4769429d57e0f3f6e5ab3915 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. *