Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #46 from atimmer/stories/at/add-handler-interface
Browse files Browse the repository at this point in the history
Add job handler interface
  • Loading branch information
josegonzalez authored Sep 12, 2017
2 parents bb04706 + 35ca26a commit c92d6d1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions DJJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ public function getDelay() {
}
}

/**
* Job handler interface which can be safely enqueued.
*/
interface DJJobHandlerInterface {
/**
* Method that will perform the job when retrieved from the jobs table.
*/
public function perform();
}

class DJBase {

// error severity levels
Expand Down

0 comments on commit c92d6d1

Please sign in to comment.