diff --git a/src/Illuminate/Contracts/Queue/Job.php b/src/Illuminate/Contracts/Queue/Job.php index 8a907987a35c..22396fc0044c 100644 --- a/src/Illuminate/Contracts/Queue/Job.php +++ b/src/Illuminate/Contracts/Queue/Job.php @@ -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(); } diff --git a/src/Illuminate/Queue/Jobs/Job.php b/src/Illuminate/Queue/Jobs/Job.php index 20b48222a485..9139332628a7 100755 --- a/src/Illuminate/Queue/Jobs/Job.php +++ b/src/Illuminate/Queue/Jobs/Job.php @@ -62,6 +62,13 @@ abstract class Job */ abstract public function getRawBody(); + /** + * Get the job identifier. + * + * @return string + */ + abstract public function getJobId(); + /** * Fire the job. *