Issues (96)

src/Events/ClamavQueuedFileScan.php (1 issue)

Severity
1
<?php
2
3
namespace Ikechukwukalu\Clamavfileupload\Events;
4
5
use Illuminate\Broadcasting\Channel;
6
use Illuminate\Broadcasting\InteractsWithSockets;
7
use Illuminate\Broadcasting\PresenceChannel;
8
use Illuminate\Broadcasting\PrivateChannel;
9
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
10
use Illuminate\Foundation\Events\Dispatchable;
11
use Illuminate\Queue\SerializesModels;
12
13
class ClamavQueuedFileScan
14
{
15
    use Dispatchable, InteractsWithSockets, SerializesModels;
0 ignored issues
show
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Ikechukwukalu\Clamavfile...ts\ClamavQueuedFileScan: $collectionClass, $id, $relations, $class, $connection, $keyBy
Loading history...
16
    public array $tmpFiles;
17
    public array $settings;
18
    public string $ref;
19
20
    /**
21
     * Create a new event instance.
22
     *
23
     * @param  array  $tmpFiles
24
     * @param  array  $settings
25
     * @param  string  $ref
26
     */
27
    public function __construct(array $tmpFiles, array $settings, string $ref)
28
    {
29
        $this->tmpFiles = $tmpFiles;
30
        $this->settings = $settings;
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
40
    {
41
        return [
42
            new PrivateChannel('channel-name'),
43
        ];
44
    }
45
}
46