Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class GeneralPushNotificationEvent implements ShouldBroadcastNow |
||
11 | { |
||
12 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
|
|||
13 | public $data; |
||
14 | |||
15 | /** |
||
16 | * Create a new event instance. |
||
17 | * |
||
18 | * @return void |
||
19 | */ |
||
20 | public function __construct($data) |
||
21 | { |
||
22 | $this->data = $data; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Get the channels the event should broadcast on. |
||
27 | * |
||
28 | * @return \Illuminate\Broadcasting\Channel|array |
||
29 | */ |
||
30 | public function broadcastOn() |
||
31 | { |
||
32 | return ['general_push_notification']; |
||
33 | } |
||
34 | |||
35 | public function broadcastAs() |
||
38 | } |
||
39 | } |
||
40 |