forked from ProcessMaker/processmaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImportLog.php
More file actions
34 lines (28 loc) · 781 Bytes
/
ImportLog.php
File metadata and controls
34 lines (28 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
namespace ProcessMaker\Events;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class ImportLog implements ShouldBroadcastNow
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public function __construct(
public $userId,
public $type,
public $message,
public $additionalParams = []
) {
}
public function broadcastAs()
{
return 'ImportLog';
}
public function broadcastOn(): array
{
return [
new PrivateChannel('ProcessMaker.Models.User.' . $this->userId),
];
}
}