TaskAdapterInterface
in
Adapter interface
Tags
Table of Contents
Methods
- clearTasks() : TaskAdapterInterface
- Clear all scheduled task
- getTask() : Task|null
- Get scheduled task
- getTaskCount() : int
- Get scheduled tasks count
- getTasks() : array<string|int, mixed>
- Get scheduled tasks
- hasTasks() : bool
- Has scheduled tasks
- removeTask() : TaskAdapterInterface
- Remove scheduled task
- schedule() : TaskAdapterInterface
- Schedule job with queue
- updateTask() : TaskAdapterInterface
- Update scheduled task
Methods
clearTasks()
Clear all scheduled task
public
clearTasks() : TaskAdapterInterface
Return values
TaskAdapterInterfacegetTask()
Get scheduled task
public
getTask(string $taskId) : Task|null
Parameters
- $taskId : string
Return values
Task|nullgetTaskCount()
Get scheduled tasks count
public
getTaskCount() : int
Return values
intgetTasks()
Get scheduled tasks
public
getTasks() : array<string|int, mixed>
Return values
array<string|int, mixed>hasTasks()
Has scheduled tasks
public
hasTasks() : bool
Return values
boolremoveTask()
Remove scheduled task
public
removeTask(string $taskId) : TaskAdapterInterface
Parameters
- $taskId : string
Return values
TaskAdapterInterfaceschedule()
Schedule job with queue
public
schedule(Task $task) : TaskAdapterInterface
Parameters
- $task : Task
Return values
TaskAdapterInterfaceupdateTask()
Update scheduled task
public
updateTask(Task $task) : TaskAdapterInterface
Parameters
- $task : Task