interface JobScheduler

Methods

array
getCommands()

Returns an array of commands managed by this scheduler.

bool
shouldSchedule(string $command, DateTime $lastRunAt)

Returns whether to schedule the given command again.

Job
createJob(string $command, DateTime $lastRunAt)

Creates the given command when it is scheduled.

Details

at line 14
array getCommands()

Returns an array of commands managed by this scheduler.

Return Value

array

at line 21
bool shouldSchedule(string $command, DateTime $lastRunAt)

Returns whether to schedule the given command again.

Parameters

string $command
DateTime $lastRunAt

Return Value

bool

at line 30
Job createJob(string $command, DateTime $lastRunAt)

Creates the given command when it is scheduled.

Parameters

string $command
DateTime $lastRunAt

Return Value

Job