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

Add constructor arguments to GeoHashGridAggregation.

parent 642af5b6
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,25 @@ class GeoHashGridAggregation extends AbstractAggregation
*/
private $shardSize;
/**
* Inner aggregations container init.
*
* @param string $name
* @param string $field
* @param int $precision
* @param int $size
* @param int $shardSize
*/
public function __construct($name, $field = null, $precision = null, $size = null, $shardSize = null)
{
parent::__construct($name);
$this->setField($field);
$this->setPrecision($precision);
$this->setSize($size);
$this->setShardSize($shardSize);
}
/**
* @return int
*/
......
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