123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
-
- namespace Illuminate\Queue\Failed;
-
- interface FailedJobProviderInterface
- {
- /**
- * Log a failed job into storage.
- *
- * @param string $connection
- * @param string $queue
- * @param string $payload
- * @param \Exception $exception
- * @return int|null
- */
- public function log($connection, $queue, $payload, $exception);
-
- /**
- * Get a list of all of the failed jobs.
- *
- * @return array
- */
- public function all();
-
- /**
- * Get a single failed job.
- *
- * @param mixed $id
- * @return object|null
- */
- public function find($id);
-
- /**
- * Delete a single failed job from storage.
- *
- * @param mixed $id
- * @return bool
- */
- public function forget($id);
-
- /**
- * Flush all of the failed jobs from storage.
- *
- * @return void
- */
- public function flush();
- }
|