public static function weekends() : array
    {
        $days        = self::getAll();
        $weekEndDays = [];

        foreach ($days as $key => $day) {
            if ($day->isWeekEnd()) {
                $weekEndDays[] = $day;
            }
        }

        return $weekEndDays;
    }
public static function weekends() : array
    {
        $days        = self::getAll();
        $weekEndDays = [];

        foreach ($days as $key => $day) {
            if ($day->isWeekEnd()) {
                $weekEndDays[] = $day;
            }
        }

        return $weekEndDays;
    }
public static function weekends ( ) : array { $ days = self :: getAll ( ) ; $ weekEndDays = [ ] ; foreach ( $ days as $ key => $ day ) { if ( $ day -> isWeekEnd ( ) ) { $ weekEndDays [ ] = $ day ; } } return $ weekEndDays ; }
Gets the weekend days.

@return DayOfWeek[]
Gets the weekend days .