| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | class ServerCreated implements ShouldBroadcastNow |
||
| 12 | { |
||
| 13 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
|
|
|||
| 14 | |||
| 15 | /** |
||
| 16 | * Create a new event instance. |
||
| 17 | * |
||
| 18 | * @param \App\Models\User user |
||
| 19 | * @return void |
||
| 20 | */ |
||
| 21 | public function __construct( |
||
| 22 | /** |
||
| 23 | * The user that created the server. |
||
| 24 | */ |
||
| 25 | public $message |
||
| 26 | ) { |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get the channels the event should broadcast on. |
||
| 31 | * |
||
| 32 | * @return \Illuminate\Broadcasting\Channel|array |
||
| 33 | */ |
||
| 34 | public function broadcastOn() |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * The event's broadcast name. |
||
| 41 | */ |
||
| 42 | public function broadcastAs(): string |
||
| 47 |