NullFailedJobProvider.php 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace Illuminate\Queue\Failed;
  3. class NullFailedJobProvider implements FailedJobProviderInterface
  4. {
  5. /**
  6. * Log a failed job into storage.
  7. *
  8. * @param string $connection
  9. * @param string $queue
  10. * @param string $payload
  11. * @param \Exception $exception
  12. * @return int|null
  13. */
  14. public function log($connection, $queue, $payload, $exception)
  15. {
  16. //
  17. }
  18. /**
  19. * Get a list of all of the failed jobs.
  20. *
  21. * @return array
  22. */
  23. public function all()
  24. {
  25. return [];
  26. }
  27. /**
  28. * Get a single failed job.
  29. *
  30. * @param mixed $id
  31. * @return object|null
  32. */
  33. public function find($id)
  34. {
  35. //
  36. }
  37. /**
  38. * Delete a single failed job from storage.
  39. *
  40. * @param mixed $id
  41. * @return bool
  42. */
  43. public function forget($id)
  44. {
  45. return true;
  46. }
  47. /**
  48. * Flush all of the failed jobs from storage.
  49. *
  50. * @return void
  51. */
  52. public function flush()
  53. {
  54. //
  55. }
  56. }