class Schedule (View source)

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, string|null $queue = null)

Add a new job callback event to the schedule.

exec(string $command, array $parameters = [])

Add a new command event to the schedule.

string
compileParameters(array $parameters)

Compile parameters for a command.

dueEvents(Application $app)

Get all of the events on the schedule that are due.

Event[]
events()

Get all of the events on the schedule.

Details

void __construct()

Create a new schedule instance.

Return Value

void

CallbackEvent call(string|callable $callback, array $parameters = [])

Add a new callback event to the schedule.

Parameters

string|callable $callback
array $parameters

Return Value

CallbackEvent

Event command(string $command, array $parameters = [])

Add a new Artisan command event to the schedule.

Parameters

string $command
array $parameters

Return Value

Event

CallbackEvent job(object|string $job, string|null $queue = null)

Add a new job callback event to the schedule.

Parameters

object|string $job
string|null $queue

Return Value

CallbackEvent

Event exec(string $command, array $parameters = [])

Add a new command event to the schedule.

Parameters

string $command
array $parameters

Return Value

Event

protected string compileParameters(array $parameters)

Compile parameters for a command.

Parameters

array $parameters

Return Value

string

Collection dueEvents(Application $app)

Get all of the events on the schedule that are due.

Parameters

Application $app

Return Value

Collection

Event[] events()

Get all of the events on the schedule.

Return Value

Event[]