CallQueuedHandler
in package
Table of Contents
- $container : Container
- The container instance.
- __construct() : void
- Create a new job instance.
- call() : void
- Handle the queued job.
- failed() : void
- Call the failed method on the job instance.
- setJobInstanceIfNecessary() : mixed
- Set the job instance of the given class if necessary.
Properties
$container
The container instance.
protected
Container
$container
Methods
__construct()
Create a new job instance.
public
__construct(Container $container) : void
Parameters
- $container : Container
Return values
void —call()
Handle the queued job.
public
call(Job $job, array<string|int, mixed> $data) : void
Parameters
- $job : Job
- $data : array<string|int, mixed>
Return values
void —failed()
Call the failed method on the job instance.
public
failed(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
Return values
void —setJobInstanceIfNecessary()
Set the job instance of the given class if necessary.
protected
setJobInstanceIfNecessary(Job $job, mixed $instance) : mixed
Parameters
- $job : Job
- $instance : mixed