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

Add constructor arguments to GeoBoundsAggregation.

parent 97ebef98
No related branches found
No related tags found
No related merge requests found
......@@ -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
*/
......
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