Schedule.php 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. use Illuminate\Console\Scheduling\Schedule as ConsoleSchedule;
  4. /**
  5. * @method static \Illuminate\Console\Scheduling\CallbackEvent call(string|callable $callback, array $parameters = [])
  6. * @method static \Illuminate\Console\Scheduling\Event command(\Symfony\Component\Console\Command\Command|string $command, array $parameters = [])
  7. * @method static \Illuminate\Console\Scheduling\CallbackEvent job(object|string $job, \UnitEnum|string|null $queue = null, \UnitEnum|string|null $connection = null)
  8. * @method static \Illuminate\Console\Scheduling\Event exec(string $command, array $parameters = [])
  9. * @method static void group(\Closure $events)
  10. * @method static string compileArrayInput(string|int $key, array $value)
  11. * @method static bool serverShouldRun(\Illuminate\Console\Scheduling\Event $event, \DateTimeInterface $time)
  12. * @method static \Illuminate\Support\Collection dueEvents(\Illuminate\Contracts\Foundation\Application $app)
  13. * @method static \Illuminate\Console\Scheduling\Event[] events()
  14. * @method static \Illuminate\Console\Scheduling\Schedule useCache(\UnitEnum|string $store)
  15. * @method static void macro(string $name, object|callable $macro)
  16. * @method static void mixin(object $mixin, bool $replace = true)
  17. * @method static bool hasMacro(string $name)
  18. * @method static void flushMacros()
  19. * @method static mixed macroCall(string $method, array $parameters)
  20. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes withoutOverlapping(int $expiresAt = 1440)
  21. * @method static void mergeAttributes(\Illuminate\Console\Scheduling\Event $event)
  22. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes user(string $user)
  23. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes environments(mixed $environments)
  24. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes evenInMaintenanceMode()
  25. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes onOneServer()
  26. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes runInBackground()
  27. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes when(\Closure|bool $callback)
  28. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes skip(\Closure|bool $callback)
  29. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes name(string $description)
  30. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes description(string $description)
  31. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes cron(string $expression)
  32. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes between(string $startTime, string $endTime)
  33. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes unlessBetween(string $startTime, string $endTime)
  34. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everySecond()
  35. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTwoSeconds()
  36. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFiveSeconds()
  37. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTenSeconds()
  38. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFifteenSeconds()
  39. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTwentySeconds()
  40. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyThirtySeconds()
  41. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyMinute()
  42. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTwoMinutes()
  43. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyThreeMinutes()
  44. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFourMinutes()
  45. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFiveMinutes()
  46. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTenMinutes()
  47. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFifteenMinutes()
  48. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyThirtyMinutes()
  49. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes hourly()
  50. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes hourlyAt(array|string|int|int[] $offset)
  51. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyOddHour(array|string|int $offset = 0)
  52. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTwoHours(array|string|int $offset = 0)
  53. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyThreeHours(array|string|int $offset = 0)
  54. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFourHours(array|string|int $offset = 0)
  55. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everySixHours(array|string|int $offset = 0)
  56. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes daily()
  57. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes at(string $time)
  58. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes dailyAt(string $time)
  59. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes twiceDaily(int $first = 1, int $second = 13)
  60. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes twiceDailyAt(int $first = 1, int $second = 13, int $offset = 0)
  61. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes weekdays()
  62. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes weekends()
  63. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes mondays()
  64. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes tuesdays()
  65. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes wednesdays()
  66. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes thursdays()
  67. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes fridays()
  68. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes saturdays()
  69. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes sundays()
  70. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes weekly()
  71. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes weeklyOn(mixed $dayOfWeek, string $time = '0:0')
  72. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes monthly()
  73. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes monthlyOn(int $dayOfMonth = 1, string $time = '0:0')
  74. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes twiceMonthly(int $first = 1, int $second = 16, string $time = '0:0')
  75. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes lastDayOfMonth(string $time = '0:0')
  76. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes quarterly()
  77. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes quarterlyOn(int $dayOfQuarter = 1, string $time = '0:0')
  78. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes yearly()
  79. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes yearlyOn(int $month = 1, int|string $dayOfMonth = 1, string $time = '0:0')
  80. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes days(mixed $days)
  81. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes timezone(\UnitEnum|\DateTimeZone|string $timezone)
  82. *
  83. * @see \Illuminate\Console\Scheduling\Schedule
  84. */
  85. class Schedule extends Facade
  86. {
  87. /**
  88. * Get the registered name of the component.
  89. *
  90. * @return string
  91. */
  92. protected static function getFacadeAccessor()
  93. {
  94. return ConsoleSchedule::class;
  95. }
  96. }