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

Add constructor arguments to HistogramAggregation.php.

parent 05c1fbc0
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,40 @@ class HistogramAggregation extends AbstractAggregation
*/
protected $keyed;
/**
* Inner aggregations container init.
*
* @param string $name
* @param string $field
* @param int $interval
* @param int $minDocCount
* @param string $orderMode
* @param string $orderDirection
* @param int $extendedBoundsMin
* @param int $extendedBoundsMax
* @param bool $keyed
*/
public function __construct(
$name,
$field = null,
$interval = null,
$minDocCount = null,
$orderMode = null,
$orderDirection = self::DIRECTION_ASC,
$extendedBoundsMin = null,
$extendedBoundsMax = null,
$keyed = null
) {
parent::__construct($name);
$this->setField($field);
$this->setInterval($interval);
$this->setMinDocCount($minDocCount);
$this->setOrder($orderMode, $orderDirection);
$this->setExtendedBounds($extendedBoundsMin, $extendedBoundsMax);
$this->setKeyed($keyed);
}
/**
* @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