| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class addUser implements ShouldBroadcast |
||
| 21 | { |
||
| 22 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
|
|
|||
| 23 | public $user; |
||
| 24 | /** |
||
| 25 | * Create a new event instance. |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | public function __construct($username) |
||
| 34 | ); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get the channels the event should broadcast on. |
||
| 39 | * |
||
| 40 | * @return \Illuminate\Broadcasting\Channel|array |
||
| 41 | */ |
||
| 42 | public function broadcastOn() |
||
| 48 |