Skip to content
Snippets Groups Projects
Commit 43c10063 authored by Simonas Šerlinskas's avatar Simonas Šerlinskas Committed by GitHub
Browse files

Merge pull request #152 from tchiotludo/bugfix/cardinality-construct

Missing construct on CardinalityAggregation
parents cc1442e3 9f26a111
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,19 @@ class CardinalityAggregation extends AbstractAggregation
use MetricTrait;
use ScriptAwareTrait;
/**
* @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);
}
/**
* @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