Documentation

Queueable

Table of Contents

$chainConnection  : string|null
The name of the connection the chain should be sent to.
$chained  : array<string|int, mixed>
The jobs that should run if this job is successful.
$chainQueue  : string|null
The name of the queue the chain should be sent to.
$connection  : string|null
The name of the connection the job should be sent to.
$delay  : DateTimeInterface|DateInterval|int|null
The number of seconds before the job should be made available.
$queue  : string|null
The name of the queue the job should be sent to.
allOnConnection()  : $this
Set the desired connection for the chain.
allOnQueue()  : $this
Set the desired queue for the chain.
chain()  : $this
Set the jobs that should run if this job is successful.
delay()  : $this
Set the desired delay for the job.
dispatchNextJobInChain()  : void
Dispatch the next job on the chain.
onConnection()  : $this
Set the desired connection for the job.
onQueue()  : $this
Set the desired queue for the job.

Properties

$chainConnection

The name of the connection the chain should be sent to.

public string|null $chainConnection

$chained

The jobs that should run if this job is successful.

public array<string|int, mixed> $chained = []

$chainQueue

The name of the queue the chain should be sent to.

public string|null $chainQueue

$connection

The name of the connection the job should be sent to.

public string|null $connection

$delay

The number of seconds before the job should be made available.

public DateTimeInterface|DateInterval|int|null $delay

$queue

The name of the queue the job should be sent to.

public string|null $queue

Methods

allOnConnection()

Set the desired connection for the chain.

public allOnConnection(string|null $connection) : $this
Parameters
$connection : string|null
Return values
$this

allOnQueue()

Set the desired queue for the chain.

public allOnQueue(string|null $queue) : $this
Parameters
$queue : string|null
Return values
$this

chain()

Set the jobs that should run if this job is successful.

public chain(array<string|int, mixed> $chain) : $this
Parameters
$chain : array<string|int, mixed>
Return values
$this

delay()

Set the desired delay for the job.

public delay(DateTimeInterface|DateInterval|int|null $delay) : $this
Parameters
$delay : DateTimeInterface|DateInterval|int|null
Return values
$this

dispatchNextJobInChain()

Dispatch the next job on the chain.

public dispatchNextJobInChain() : void
Return values
void

onConnection()

Set the desired connection for the job.

public onConnection(string|null $connection) : $this
Parameters
$connection : string|null
Return values
$this

onQueue()

Set the desired queue for the job.

public onQueue(string|null $queue) : $this
Parameters
$queue : string|null
Return values
$this

Search results