| 1 | <?php |
||
| 14 | class ChatController extends WebSocketController |
||
| 15 | { |
||
| 16 | |||
| 17 | use RoomUtility; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @throws \Illuminate\Validation\ValidationException |
||
| 21 | */ |
||
| 22 | function sendMessageToUser() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @throws \Illuminate\Validation\ValidationException |
||
| 37 | */ |
||
| 38 | function sendMessageToRoom() |
||
| 48 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.