1 <?php
2
3 namespace Skimia\Assets\Events;
4
5 use App\Events\Event;
6 use Illuminate\Queue\SerializesModels;
7
8 class BeforeMergeCollectionFiles extends Event
9 {
10 use SerializesModels;
11
12 protected $files = [];
13
14 /**
15 * Create a new event instance.
16 *
17 * @return void
18 */
19 public function __construct(array &$collectionFiles)
20 {
21 $this->files = &$collectionFiles;
22 //$this->files[] = 'google';
23 }
24
25 public function &getCollection()
26 {
27 return $this->files;
28 }
29
30 /**
31 * Get the channels the event should be broadcast on.
32 *
33 * @return array
34 */
35 public function broadcastOn()
36 {
37 return [];
38 }
39 }
40