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