Schedule
class Schedule
Properties
protected Event[] | $events | All of the events on the schedule. |
|
protected Mutex | $mutex | The mutex implementation. |
Methods
void
__construct()
Create a new schedule instance.
call(string|callable $callback, array $parameters = [])
Add a new callback event to the schedule.
command(string $command, array $parameters = [])
Add a new Artisan command event to the schedule.
job(object|string $job)
Add a new job callback event to the schedule.
string
compileParameters(array $parameters)
Compile parameters for a command.
array
Details
at line 30
void
__construct()
Create a new schedule instance.
at line 46
CallbackEvent
call(string|callable $callback, array $parameters = [])
Add a new callback event to the schedule.
at line 62
Event
command(string $command, array $parameters = [])
Add a new Artisan command event to the schedule.
at line 79
CallbackEvent
job(object|string $job)
Add a new job callback event to the schedule.
at line 93
Event
exec(string $command, array $parameters = [])
Add a new command event to the schedule.
at line 110
protected string
compileParameters(array $parameters)
Compile parameters for a command.
at line 131
array
dueEvents(Application $app)
Get all of the events on the schedule that are due.
at line 141
Event[]
events()
Get all of the events on the schedule.