PendingDispatch
in package
Table of Contents
- $job : mixed
- The job.
- __construct() : void
- Create a new pending job dispatch.
- __destruct() : void
- Handle the object's destruction.
- 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.
- onConnection() : $this
- Set the desired connection for the job.
- onQueue() : $this
- Set the desired queue for the job.
Properties
$job
The job.
protected
mixed
$job
Methods
__construct()
Create a new pending job dispatch.
public
__construct(mixed $job) : void
Parameters
- $job : mixed
Return values
void —__destruct()
Handle the object's destruction.
public
__destruct() : void
Return values
void —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(DateTime|int|null $delay) : $this
Parameters
- $delay : DateTime|int|null
Return values
$this —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