public static function weekdays($num = 1): array
    {
        $days = [];
        $day = self::parse(Date('Y-m-d'));
        while (count($days) < $num) {
            if (!$day->isWeekend()) {
                $days[] = clone $day;
            }
            $day->addWeekday();
        }
        return $days;
    }
public static function weekdays($num = 1): array
    {
        $days = [];
        $day = self::parse(Date('Y-m-d'));
        while (count($days) < $num) {
            if (!$day->isWeekend()) {
                $days[] = clone $day;
            }
            $day->addWeekday();
        }
        return $days;
    }
public static function weekdays ( $ num = 1 ) : array { $ days = [ ] ; $ day = self :: parse ( Date ( 'Y-m-d' ) ) ; while ( count ( $ days ) < $ num ) { if ( ! $ day -> isWeekend ( ) ) { $ days [ ] = clone $ day ; } $ day -> addWeekday ( ) ; } return $ days ; }
Return the provided number of weekdays.

@param  int $num
@return array
Return the provided number of weekdays .