JobCommand.php 326 B

123456789101112131415161718
  1. <?php
  2. namespace Pheanstalk\Command;
  3. use Pheanstalk\Contract\JobIdInterface;
  4. /**
  5. * A command that is executed against a single job
  6. */
  7. abstract class JobCommand extends AbstractCommand
  8. {
  9. protected $jobId;
  10. public function __construct(JobIdInterface $subject)
  11. {
  12. $this->jobId = $subject->getId();
  13. }
  14. }