1 | <?php |
||
17 | class EnrollmentCreated implements ShouldBroadcast |
||
18 | { |
||
19 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
20 | |||
21 | /** |
||
22 | * Create a new event instance. |
||
23 | * |
||
24 | * @return void |
||
|
|||
25 | */ |
||
26 | public function __construct() |
||
30 | |||
31 | /** |
||
32 | * Get the channels the event should broadcast on. |
||
33 | * |
||
34 | * @return Channel|array |
||
35 | */ |
||
36 | public function broadcastOn() |
||
40 | } |
||
41 |
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.