blob: 750d10d4b088f2123b8c887b298ab09437bb4f53 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Illuminate\Contracts\Queue;
4
5interface QueueableCollection
6{
7 /**
8 * Get the type of the entities being queued.
9 *
10 * @return string|null
11 */
12 public function getQueueableClass();
13
14 /**
15 * Get the identifiers for all of the entities.
16 *
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010017 * @return array<int, mixed>
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020018 */
19 public function getQueueableIds();
20
21 /**
22 * Get the relationships of the entities being queued.
23 *
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010024 * @return array<int, string>
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020025 */
26 public function getQueueableRelations();
27
28 /**
29 * Get the connection of the entities being queued.
30 *
31 * @return string|null
32 */
33 public function getQueueableConnection();
34}