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