Skip to content

Commit

Permalink
Job contract interface
Browse files Browse the repository at this point in the history
updated to include common methods in the abstract Job class
  • Loading branch information
Artistan authored Sep 20, 2017
1 parent 5bfedaa commit f56fa30
Showing 1 changed file with 14 additions and 0 deletions.
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();
}

0 comments on commit f56fa30

Please sign in to comment.