Passed
Push — dev6 ( 794b39...988b8a )
by Ron
17:48
created

DownloadedFileEvent::broadcastOn()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Events\Home;
4
5
use App\Models\FileUploads;
6
use Illuminate\Broadcasting\Channel;
7
use Illuminate\Broadcasting\InteractsWithSockets;
8
use Illuminate\Broadcasting\PresenceChannel;
9
use Illuminate\Broadcasting\PrivateChannel;
10
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
11
use Illuminate\Foundation\Events\Dispatchable;
12
use Illuminate\Queue\SerializesModels;
13
14
class DownloadedFileEvent
15
{
16
    use Dispatchable;
17
    use SerializesModels;
18
    use InteractsWithSockets;
19
20
    public $file;
21
22
    /**
23
     * Create a new event instance
24
     */
25
    public function __construct(FileUploads $file)
26
    {
27
        $this->file = $file;
28
    }
29
}
30