class
Illuminate
/
Queue
/
CallQueuedClosure
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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.