NullQueue.php 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. namespace Illuminate\Queue;
  3. use Illuminate\Contracts\Queue\Queue as QueueContract;
  4. class NullQueue extends Queue implements QueueContract
  5. {
  6. /**
  7. * Get the size of the queue.
  8. *
  9. * @param string $queue
  10. * @return int
  11. */
  12. public function size($queue = null)
  13. {
  14. return 0;
  15. }
  16. /**
  17. * Push a new job onto the queue.
  18. *
  19. * @param string $job
  20. * @param mixed $data
  21. * @param string $queue
  22. * @return mixed
  23. */
  24. public function push($job, $data = '', $queue = null)
  25. {
  26. //
  27. }
  28. /**
  29. * Push a raw payload onto the queue.
  30. *
  31. * @param string $payload
  32. * @param string $queue
  33. * @param array $options
  34. * @return mixed
  35. */
  36. public function pushRaw($payload, $queue = null, array $options = [])
  37. {
  38. //
  39. }
  40. /**
  41. * Push a new job onto the queue after a delay.
  42. *
  43. * @param \DateTimeInterface|\DateInterval|int $delay
  44. * @param string $job
  45. * @param mixed $data
  46. * @param string $queue
  47. * @return mixed
  48. */
  49. public function later($delay, $job, $data = '', $queue = null)
  50. {
  51. //
  52. }
  53. /**
  54. * Pop the next job off of the queue.
  55. *
  56. * @param string $queue
  57. * @return \Illuminate\Contracts\Queue\Job|null
  58. */
  59. public function pop($queue = null)
  60. {
  61. //
  62. }
  63. }