Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
| 2 | |
| 3 | namespace Illuminate\Contracts\Bus; |
| 4 | |
| 5 | interface 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 | } |