QueueInterface.php 679 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php namespace Illuminate\Queue;
  2. interface QueueInterface {
  3. /**
  4. * Push a new job onto the queue.
  5. *
  6. * @param string $job
  7. * @param mixed $data
  8. * @param string $queue
  9. * @return mixed
  10. */
  11. public function push($job, $data = '', $queue = null);
  12. /**
  13. * Push a new job onto the queue after a delay.
  14. *
  15. * @param int $delay
  16. * @param string $job
  17. * @param mixed $data
  18. * @param string $queue
  19. * @return mixed
  20. */
  21. public function later($delay, $job, $data = '', $queue = null);
  22. /**
  23. * Pop the next job off of the queue.
  24. *
  25. * @param string $queue
  26. * @return \Illuminate\Queue\Jobs\Job|nul
  27. */
  28. public function pop($queue = null);
  29. }