QueueingDispatcher.php 691 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Illuminate\Contracts\Bus;
  3. interface QueueingDispatcher extends Dispatcher
  4. {
  5. /**
  6. * Attempt to find the batch with the given ID.
  7. *
  8. * @param string $batchId
  9. * @return \Illuminate\Bus\Batch|null
  10. */
  11. public function findBatch(string $batchId);
  12. /**
  13. * Create a new batch of queueable jobs.
  14. *
  15. * @param \Illuminate\Support\Collection|array $jobs
  16. * @return \Illuminate\Bus\PendingBatch
  17. */
  18. public function batch($jobs);
  19. /**
  20. * Dispatch a command to its appropriate handler behind a queue.
  21. *
  22. * @param mixed $command
  23. * @return mixed
  24. */
  25. public function dispatchToQueue($command);
  26. }