1 | <?php |
||
13 | class LessonCreated implements ShouldBroadcast |
||
14 | { |
||
15 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
16 | |||
17 | /** |
||
18 | * Create a new event instance. |
||
19 | * |
||
20 | * @return void |
||
|
|||
21 | */ |
||
22 | public function __construct() |
||
26 | |||
27 | /** |
||
28 | * Get the channels the event should broadcast on. |
||
29 | * |
||
30 | * @return Channel|array |
||
31 | */ |
||
32 | public function broadcastOn() |
||
36 | } |
||
37 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.