class Illuminate / Queue / CallQueuedClosure

CallQueuedClosure

Implements

Uses

Properties

public

$closure Laravel\...\SerializableClosure

The serializable Closure instance.

Default: null
public

$failureCallbacks array

The callbacks that should be executed on failure.

Default: []
public

$deleteWhenMissingModels bool

Indicate if the job should be deleted when models are missing.

Default: true

Methods

public

__construct ( $closure ) : void

Create a new job instance.

Parameters

  • $closure Laravel\...\SerializableClosure
public static

create ( Closure $job ) : self

Create a new job instance.

Parameters

public

handle ( Container $container ) : void

Execute the job.

Parameters

public

onFailure ( $callback ) : $this

Add a callback to be executed if the job fails.

Parameters

  • $callback callable
public

failed ( $e ) : void

Handle a job failure.

Parameters

public

displayName ( ) : string

Get the display name for the queued job.