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

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

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

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

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

@return DayOfWeek[]
Gets the weekdays .