private static function flattenDaysIntervals(array $days): array
    {
        \ksort($days);

        $flattenDays = [];
        foreach ($days as $dayOfWeek => $intervals) {
            $flattenDays[] = DayBuilder::fromArray($dayOfWeek, $intervals);
        }

        return $flattenDays;
    }
private static function flattenDaysIntervals(array $days): array
    {
        \ksort($days);

        $flattenDays = [];
        foreach ($days as $dayOfWeek => $intervals) {
            $flattenDays[] = DayBuilder::fromArray($dayOfWeek, $intervals);
        }

        return $flattenDays;
    }
private static function flattenDaysIntervals ( array $ days ) : array { \ ksort ( $ days ) ; $ flattenDays = [ ] ; foreach ( $ days as $ dayOfWeek => $ intervals ) { $ flattenDays [ ] = DayBuilder :: fromArray ( $ dayOfWeek , $ intervals ) ; } return $ flattenDays ; }
Flatten days intervals.

@param array $days The days to flatten.
@return DayInterface[]
Flatten days intervals .