blob: ff84e2752faf0f2e222c32009ef10ca640acb698 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Illuminate\Contracts\Bus;
4
5interface QueueingDispatcher extends Dispatcher
6{
7 /**
8 * Attempt to find the batch with the given ID.
9 *
10 * @param string $batchId
11 * @return \Illuminate\Bus\Batch|null
12 */
13 public function findBatch(string $batchId);
14
15 /**
16 * Create a new batch of queueable jobs.
17 *
18 * @param \Illuminate\Support\Collection|array $jobs
19 * @return \Illuminate\Bus\PendingBatch
20 */
21 public function batch($jobs);
22
23 /**
24 * Dispatch a command to its appropriate handler behind a queue.
25 *
26 * @param mixed $command
27 * @return mixed
28 */
29 public function dispatchToQueue($command);
30}