FailedJobProviderInterface.php 903B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace Illuminate\Queue\Failed;
  3. interface 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. * Get a list of all of the failed jobs.
  17. *
  18. * @return array
  19. */
  20. public function all();
  21. /**
  22. * Get a single failed job.
  23. *
  24. * @param mixed $id
  25. * @return object|null
  26. */
  27. public function find($id);
  28. /**
  29. * Delete a single failed job from storage.
  30. *
  31. * @param mixed $id
  32. * @return bool
  33. */
  34. public function forget($id);
  35. /**
  36. * Flush all of the failed jobs from storage.
  37. *
  38. * @return void
  39. */
  40. public function flush();
  41. }