payload['displayName']) { return null; } return $this->payload['displayName']; } /** * Return the job's max tries value * */ public function getMaxTriesAttribute(): ?string { if (!$this->payload['maxTries']) { return null; } return $this->payload['maxTries']; } /** * Return the job's backoff value * */ public function getBackoffAttribute(): ?string { if (!$this->payload['backoff']) { return null; } return $this->payload['backoff']; } /** * Return the job's timeout value * */ public function getTimeoutAttribute(): ?string { if (!$this->payload['timeout']) { return null; } return $this->payload['timeout']; } /** * Return the job's timeout at value * */ public function getTimeoutAtAttribute(): ?string { if (!$this->payload['timeout_at']) { return null; } $obj = new Carbon($this->payload['timeout_at']); return Date::instance($obj); } /** * Return the job's command name value * */ public function getCommandNameAttribute(): ?string { if (!$this->payload['data']['commandName']) { return null; } return $this->payload['data']['commandName']; } /** * Return the job's command value * */ public function getCommandAttribute(): array { if (!$this->payload['data']['command']) { return []; } return (array) unserialize($this->payload['data']['command']); } }