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