As discussed in #2 this pull request expands the JobInterface to promise all four Disque job properties:
ID
Body
NACKs
Additional deliveries
This will allow further work on the implementation of WITHCOUNTERS (see #1).
A few notes:
This is a bc-breaking update but I have tried to keep the breaks to a minimum. The BaseJob constructor accepts the body as the first argument, so all previous uses, tests and documentation examples keep working.
I have updated the tests to cover the new functionality and fix whatever else I have broken during the refactoring. Let me know whether I kept your testing standards (I'm only used to testing in PHPSpec).
I have updated the documentation.
Please review the changes and let me know what I should improve and fix.
As discussed in #2 this pull request expands the JobInterface to promise all four Disque job properties:
This will allow further work on the implementation of WITHCOUNTERS (see #1).
A few notes:
Please review the changes and let me know what I should improve and fix.