class
Illuminate
/
Foundation
/
Bus
/
PendingChain
You are viewing an older version of the documentation. For the latest, please visit master documentation.
PendingChain
Properties
public
$job mixed
The class name of the job being dispatched.
Default: null
public
$chain array
The jobs to be chained.
Default: null
public
$connection string|null
The name of the connection the chain should be sent to.
Default: null
public
$queue string|null
The name of the queue the chain should be sent to.
Default: null
public
$delay DateTimeInterface |DateInterval |int|null
The number of seconds before the chain should be made available.
Default: null
public
$catchCallbacks array
The callbacks to be executed on failure.
Default: []
Methods
public
__construct ( $job , $chain ) : void
Create a new PendingChain instance.
Parameters
- $job mixed
- $chain array
public
onConnection ( $connection ) : $this
Set the desired connection for the job.
Parameters
- $connection string|null
public
onQueue ( $queue ) : $this
Set the desired queue for the job.
Parameters
- $queue string|null
public
delay ( $delay ) : $this
Set the desired delay for the chain.
Parameters
- $delay DateTimeInterface |DateInterval |int|null
public
catch ( $callback ) : $this
Add a callback to be executed on job failure.
Parameters
- $callback callable
public
catchCallbacks ( ) : array
Get the "catch" callbacks that have been registered.