Elastica\Aggregation\Histogram::__construct PHP Метод

__construct() публичный Метод

public __construct ( string $name, string $field, integer $interval )
$name string the name of this aggregation
$field string the name of the field on which to perform the aggregation
$interval integer the interval by which documents will be bucketed
    public function __construct($name, $field, $interval)
    {
        parent::__construct($name);
        $this->setField($field);
        $this->setInterval($interval);
    }