class
Illuminate
/
Queue
/
CallQueuedClosure
You are viewing an older version of the documentation. For the latest, please visit master documentation.
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
onFailure ( $callback ) : $this
Add a callback to be executed if the job fails.
Parameters
- $callback callable
public
displayName ( ) : string
Get the display name for the queued job.