protected function get_next_range(\DateTimeImmutable $next) {

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

        $start = $next->getTimestamp();
        $end = $next->add($this->periodicity())->getTimestamp();
        return [
            'start' => $start,
            'end' => $end,
            'time' => $start
        ];
    }
protected function get_next_range ( \ DateTimeImmutable $ next ) { $ start = $ next -> getTimestamp ( ) ; $ end = $ next -> add ( $ this -> periodicity ( ) ) -> getTimestamp ( ) ; return [ 'start' => $ start , 'end' => $ end , 'time' => $ start ] ; }
The next range indicator calculations should be based on upcoming dates.

@param  \DateTimeImmutable $next
@return array
The next range indicator calculations should be based on upcoming dates .