__construct()
__construct() : void
AbstractQueueAdapter class constructor.
Database adapter class.
The DatabaseAdapter class serves as a queue adapter for handling jobs using a database
backend. It allows pushing closures representing jobs to a queue and retrieving the next
job to be processed.
*
push(\Closure $closure, mixed ...$params) : int|string
Push a job onto the queue.
| \Closure | $closure | Holds the closure representing the job to be pushed onto the queue. |
| mixed | $params variadic | Holds additional parameters needed for the job. |
Returns the job identifier or status code.