| 1 | <?php |
||
| 15 | class TelegramNotification |
||
| 16 | { |
||
| 17 | use InteractsWithSockets, SerializesModels; |
||
| 18 | |||
| 19 | public $content; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Create a new event instance. |
||
| 23 | * |
||
| 24 | * @return void |
||
|
|
|||
| 25 | */ |
||
| 26 | public function __construct($content) |
||
| 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
@returnannotation 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.