class Illuminate / Foundation / Bus / PendingDispatch
You are viewing an older version of the documentation. For the latest, please visit master documentation.

PendingDispatch

Properties

protected

$job mixed

The job.

Default: null
protected

$afterResponse bool

Indicates if the job should be dispatched immediately after sending the response.

Default: false

Methods

public

__construct ( $job ) : void

Create a new pending job dispatch.

Parameters

  • $job mixed
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

allOnConnection ( $connection ) : $this

Set the desired connection for the chain.

Parameters

  • $connection string|null
public

allOnQueue ( $queue ) : $this

Set the desired queue for the chain.

Parameters

  • $queue string|null
public

delay ( $delay ) : $this

Set the desired delay for the job.

Parameters

public

afterCommit ( ) : $this

Indicate that the job should be dispatched after all database transactions have committed.

public

beforeCommit ( ) : $this

Indicate that the job should not wait until database transactions have been committed before dispatching.

public

chain ( $chain ) : $this

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

Parameters

  • $chain array
public

afterResponse ( ) : $this

Indicate that the job should be dispatched after the response is sent to the browser.

protected

shouldDispatch ( ) : bool

Determine if the job should be dispatched.

public

__call ( $method , $parameters ) : $this

Dynamically proxy methods to the underlying job.

Parameters

  • $method string
  • $parameters array
public

__destruct ( ) : void

Handle the object's destruction.