Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.6] Queue Jobs updates #21303

Merged
merged 2 commits into from
Sep 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/Illuminate/Contracts/Queue/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,18 @@ public function getQueue();
* @return string
*/
public function getRawBody();

/**
* Get the decoded body of the job.
*
* @return array
*/
public function payload();

/**
* Get the job identifier.
*
* @return string
*/
public function getJobId();
}
7 changes: 7 additions & 0 deletions src/Illuminate/Queue/Jobs/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ abstract class Job
*/
abstract public function getRawBody();

/**
* Get the job identifier.
*
* @return string
*/
abstract public function getJobId();

/**
* Fire the job.
*
Expand Down