Total Complexity | 1 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class UnsubscribedFromChannel |
||
10 | { |
||
11 | use Dispatchable, SerializesModels; |
||
|
|||
12 | |||
13 | /** |
||
14 | * The WebSockets app id that the user connected to. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | public $appId; |
||
19 | |||
20 | /** |
||
21 | * The Socket ID associated with the connection. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | public $socketId; |
||
26 | |||
27 | /** |
||
28 | * The channel name. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | public $channelName; |
||
33 | |||
34 | /** |
||
35 | * The user received on presence channel. |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | public $user; |
||
40 | |||
41 | /** |
||
42 | * Create a new event instance. |
||
43 | * |
||
44 | * @param string $appId |
||
45 | * @param string $socketId |
||
46 | * @param string $channelName |
||
47 | * @param stdClass|null $user |
||
48 | * @return void |
||
49 | */ |
||
50 | public function __construct(string $appId, string $socketId, string $channelName, ?stdClass $user = null) |
||
58 |