Skip to content
Snippets Groups Projects
Commit 64d805f5 authored by Aivaras Gotovskis's avatar Aivaras Gotovskis
Browse files

Add constructor arguments to NestedAggregation.

parent c982974b
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,19 @@ class NestedAggregation 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.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment