class CommandScheduler implements JobScheduler

Methods

__construct(string $name, CronCommand $command)

No description

array
getCommands()

Returns an array of commands managed by this scheduler.

bool
shouldSchedule(string $_, DateTime $lastRunAt)

Returns whether to schedule the given command again.

Job
createJob(string $_, DateTime $lastRunAt)

Creates the given command when it is scheduled.

Details

at line 13
__construct(string $name, CronCommand $command)

Parameters

string $name
CronCommand $command

at line 19
array getCommands()

Returns an array of commands managed by this scheduler.

Return Value

array

at line 24
bool shouldSchedule(string $_, DateTime $lastRunAt)

Returns whether to schedule the given command again.

Parameters

string $_
DateTime $lastRunAt

Return Value

bool

at line 29
Job createJob(string $_, DateTime $lastRunAt)

Creates the given command when it is scheduled.

Parameters

string $_
DateTime $lastRunAt

Return Value

Job