public function push(Period $interval, Period ...$intervals): void
    {
        $this->intervals = array_merge($this->intervals, [$interval], $intervals);
    }
public function push(Period $interval, Period ...$intervals): void
    {
        $this->intervals = array_merge($this->intervals, [$interval], $intervals);
    }
public function push ( Period $ interval , Period ... $ intervals ) : void { $ this -> intervals = array_merge ( $ this -> intervals , [ $ interval ] , $ intervals ) ; }
Adds new intervals at the end of the sequence.

@param Period ...$intervals
Adds new intervals at the end of the sequence .