src/Aggregation/Bucketing/Ipv4RangeAggregation.php
public function addRange($from = null, $to = null)
    {
        $range = array_filter(
            [
                'from' => $from,
                'to' => $to,
            ],
            function ($v) {
                return !is_null($v);
            }
        );

        $this->ranges[] = $range;

        return $this;
    }
public function addRange($from = null, $to = null)
    {
        $range = array_filter(
            [
                'from' => $from,
                'to' => $to,
            ],
            function ($v) {
                return !is_null($v);
            }
        );

        $this->ranges[] = $range;

        return $this;
    }
public function addRange ( $ from = null , $ to = null ) { $ range = array_filter ( [ 'from' => $ from , 'to' => $ to , ] , function ( $ v ) { return ! is_null ( $ v ) ; } ) ; $ this -> ranges [ ] = $ range ; return $ this ; }
Add range to aggregation.

@param string|null $from
@param string|null $to

@return Ipv4RangeAggregation
Add range to aggregation .