public function contains(Period $interval, Period ...$intervals): bool
    {
        $intervals[] = $interval;
        foreach ($intervals as $period) {
            if (false === $this->indexOf($period)) {
                return false;
            }
        }

        return true;
    }
public function contains(Period $interval, Period ...$intervals): bool
    {
        $intervals[] = $interval;
        foreach ($intervals as $period) {
            if (false === $this->indexOf($period)) {
                return false;
            }
        }

        return true;
    }
public function contains ( Period $ interval , Period ... $ intervals ) : bool { $ intervals [ ] = $ interval ; foreach ( $ intervals as $ period ) { if ( false === $ this -> indexOf ( $ period ) ) { return false ; } } return true ; }
Tells whether the given interval is present in the sequence.

@param Period ...$intervals
Tells whether the given interval is present in the sequence .