protected function get_next_range(\DateTimeImmutable $next) {

        $end = $next->getTimestamp();
        $start = $next->sub($this->periodicity())->getTimestamp();

        if ($start < $this->analysable->get_start()) {
            // We skip the first range generated as its start is prior to the analysable start.
            return false;
        }

        return [
            'start' => $start,
            'end' => $end,
            'time' => $end
        ];
    }
protected function get_next_range(\DateTimeImmutable $next) {

        $end = $next->getTimestamp();
        $start = $next->sub($this->periodicity())->getTimestamp();

        if ($start < $this->analysable->get_start()) {
            // We skip the first range generated as its start is prior to the analysable start.
            return false;
        }

        return [
            'start' => $start,
            'end' => $end,
            'time' => $end
        ];
    }
protected function get_next_range ( \ DateTimeImmutable $ next ) { $ end = $ next -> getTimestamp ( ) ; $ start = $ next -> sub ( $ this -> periodicity ( ) ) -> getTimestamp ( ) ; if ( $ start < $ this -> analysable -> get_start ( ) ) { // We skip the first range generated as its start is prior to the analysable start. return false ; } return [ 'start' => $ start , 'end' => $ end , 'time' => $ end ] ; }
The next range is based on the past period.

@param  \DateTimeImmutable $next
@return array
The next range is based on the past period .