| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class QueuedDelete |
||
| 14 | { |
||
| 15 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
|
|
|||
| 16 | |||
| 17 | public array|int|string $ids; |
||
| 18 | public null|string $ref; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Create a new event instance. |
||
| 22 | * |
||
| 23 | * @param string $ref |
||
| 24 | * @param array|int|string|null $ids |
||
| 25 | */ |
||
| 26 | public function __construct(array|int|string $ids, null|string $ref = null) |
||
| 27 | { |
||
| 28 | $this->ref = $ref; |
||
| 29 | $this->ids = $ids; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get the channels the event should broadcast on. |
||
| 34 | * |
||
| 35 | * @return array<int, \Illuminate\Broadcasting\Channel> |
||
| 36 | */ |
||
| 37 | public function broadcastOn(): array |
||
| 41 | ]; |
||
| 42 | } |
||
| 44 |