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

Add constructor arguments to TermsAggregation.

parent 5675f809
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,21 @@ class TermsAggregation extends AbstractAggregation
use BucketingTrait;
use ScriptAwareTrait;
/**
* Inner aggregations container init.
*
* @param string $name
* @param string $field
* @param string $script
*/
public function __construct($name, $field = null, $script = null)
{
parent::__construct($name);
$this->setField($field);
$this->setScript($script);
}
/**
* {@inheritdoc}
*/
......
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