diff --git a/src/Aggregation/GeoBoundsAggregation.php b/src/Aggregation/GeoBoundsAggregation.php index 1079d7cd8a9a22c09feecd5897a93148b3cc156d..f408fba5df72e7e990d2cd31f66dfa4a2f884fe1 100644 --- a/src/Aggregation/GeoBoundsAggregation.php +++ b/src/Aggregation/GeoBoundsAggregation.php @@ -25,6 +25,21 @@ class GeoBoundsAggregation extends AbstractAggregation */ private $wrapLongitude = true; + /** + * Inner aggregations container init. + * + * @param string $name + * @param string $field + * @param bool $wrapLongitude + */ + public function __construct($name, $field = null, $wrapLongitude = true) + { + parent::__construct($name); + + $this->setField($field); + $this->setWrapLongitude($wrapLongitude); + } + /** * @return bool */