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