diff --git a/src/Aggregation/AbstractAggregation.php b/src/Aggregation/AbstractAggregation.php index 438335eb4370e1cce167c16b27886a1eba44ae15..03b369415a2b1d2ea37fb20bf04f5ebfbc3f55eb 100644 --- a/src/Aggregation/AbstractAggregation.php +++ b/src/Aggregation/AbstractAggregation.php @@ -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; } /**