Skip to content
Snippets Groups Projects
Commit 8288d1e4 authored by tchiotludo's avatar tchiotludo Committed by tchiotludo
Browse files

Allow chaining of aggregation

parent ab844ffa
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,8 @@ abstract class AbstractAggregation implements BuilderInterface
* Adds a sub-aggregation.
*
* @param AbstractAggregation $abstractAggregation
*
* @return $this
*/
public function addAggregation(AbstractAggregation $abstractAggregation)
{
......@@ -84,6 +86,8 @@ abstract class AbstractAggregation implements BuilderInterface
}
$this->aggregations->add($abstractAggregation);
return $this;
}
/**
......
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