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

Add constructor arguments to ExtendedStatsAggregation.

parent a9ed693e
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,23 @@ class ExtendedStatsAggregation extends AbstractAggregation
use MetricTrait;
use ScriptAwareTrait;
/**
* Inner aggregations container init.
*
* @param string $name
* @param string $field
* @param int $sigma
* @param string $script
*/
public function __construct($name, $field = null, $sigma = null, $script = null)
{
parent::__construct($name);
$this->setField($field);
$this->setSigma($sigma);
$this->setScript($script);
}
/**
* @var 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