JobPayload
class JobPayload implements ArrayAccess
Properties
| array | $decoded | The decoded payload array. |
Methods
Create a new raw job payload instance.
Get the job ID from the payload.
Get the job tags from the payload.
Determine if the job is a retry of a previous job.
Get the ID of the job this job is a retry of.
Determine if the job has been silenced.
Prepare the payload for storage on the queue by adding tags, etc.
Get the "type" of job being queued.
Get the appropriate tags for the job.
Determine if the underlying job class should be silenced.
Get the underlying queued job.
Set the given key / value pairs on the payload.
Get the "command name" for the job.
Get the "display name" for the job.
Determine if the given offset exists.
Get the value at the current offset.
Set the value at the current offset.
Unset the value at the current offset.
Details
at line 29
__construct(string $value)
Create a new raw job payload instance.
at line 56
string
id()
Get the job ID from the payload.
at line 64
array
tags()
Get the job tags from the payload.
at line 72
bool
isRetry()
Determine if the job is a retry of a previous job.
at line 80
string|null
retryOf()
Get the ID of the job this job is a retry of.
at line 88
bool
isSilenced()
Determine if the job has been silenced.
at line 96
JobPayload
prepare(mixed $job)
Prepare the payload for storage on the queue by adding tags, etc.
at line 111
protected string
determineType(mixed $job)
Get the "type" of job being queued.
at line 125
protected array
determineTags(mixed $job)
Get the appropriate tags for the job.
at line 136
protected bool
shouldBeSilenced(mixed $job, array $tags)
Determine if the underlying job class should be silenced.
at line 154
protected mixed
underlyingJob(mixed $job)
Get the underlying queued job.
at line 168
JobPayload
set(array $values)
Set the given key / value pairs on the payload.
at line 180
string|null
commandName()
Get the "command name" for the job.
at line 188
string|null
displayName()
Get the "display name" for the job.
at line 196
bool
offsetExists(mixed $offset)
Determine if the given offset exists.
at line 204
mixed
offsetGet(mixed $offset)
Get the value at the current offset.
at line 212
void
offsetSet(mixed $offset, mixed $value)
Set the value at the current offset.
at line 220
void
offsetUnset(mixed $offset)
Unset the value at the current offset.