AddInterface
in
Any task needs to at least implement add().
Tags
Table of Contents
Methods
- add() : void
- Allows adding a task to the queue.
Methods
add()
Allows adding a task to the queue.
public
add(string|null $data) : void
Will create one example job in the queue, which later will be executed using run().
Parameters
- $data : string|null
-
Optional data for the task, make sure to "quote multi words"