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