PendingDispatch
Properties
$job mixed
The job.
$afterResponse bool
Indicates if the job should be dispatched immediately after sending the response.
Methods
__construct ( $job ) : void
Create a new pending job dispatch.
Parameters
- $job mixed
onConnection ( $connection ) : $this
Set the desired connection for the job.
Parameters
- $connection string|null
onQueue ( $queue ) : $this
Set the desired queue for the job.
Parameters
- $queue string|null
allOnConnection ( $connection ) : $this
Set the desired connection for the chain.
Parameters
- $connection string|null
allOnQueue ( $queue ) : $this
Set the desired queue for the chain.
Parameters
- $queue string|null
delay ( $delay ) : $this
Set the desired delay in seconds for the job.
Parameters
- $delay DateTimeInterface |DateInterval |int|null
afterCommit ( ) : $this
Indicate that the job should be dispatched after all database transactions have committed.
beforeCommit ( ) : $this
Indicate that the job should not wait until database transactions have been committed before dispatching.
chain ( $chain ) : $this
Set the jobs that should run if this job is successful.
Parameters
- $chain array
afterResponse ( ) : $this
Indicate that the job should be dispatched after the response is sent to the browser.
shouldDispatch ( ) : bool
Determine if the job should be dispatched.
__call ( $method , $parameters ) : $this
Dynamically proxy methods to the underlying job.
Parameters
- $method string
- $parameters array
__destruct ( ) : void
Handle the object's destruction.