ReservedJob
A JobPayload claimed off a PollableQueueDriverInterface by reserve().
$id is driver-specific (e.g. a row id) and is only meaningful back to the same driver via ack()/release()/discard().
Synopsis
Section titled “Synopsis”final readonly class ReservedJob
| Source | ReservedJob.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$id | string | readonly. |
$payload | JobPayload | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $id, JobPayload $payload): mixed
| Parameter | Type | Description |
|---|---|---|
$id | string | |
$payload | JobPayload |
Returns mixed