| 1 | <?php |
||
| 13 | class ModelTagged |
||
| 14 | { |
||
| 15 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
| 16 | |||
| 17 | private $model; |
||
| 18 | private $tags; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return mixed |
||
| 22 | */ |
||
| 23 | public function getModel() |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return mixed |
||
| 30 | */ |
||
| 31 | public function getTags() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Create a new event instance. |
||
| 38 | * |
||
| 39 | * @return void |
||
|
|
|||
| 40 | */ |
||
| 41 | public function __construct($model, $tags) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Get the channels the event should broadcast on. |
||
| 49 | * |
||
| 50 | * @return \Illuminate\Broadcasting\Channel|array |
||
| 51 | */ |
||
| 52 | public function broadcastOn() |
||
| 56 | } |
||
| 57 |
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.