Elastica\Aggregation\IpRange::__construct PHP Method

__construct() public method

public __construct ( string $name, string $field )
$name string the name of this aggregation
$field string the field on which to perform this aggregation
    public function __construct($name, $field)
    {
        parent::__construct($name);
        $this->setField($field);
    }