1 | <?php |
||
13 | class ModelUntagged |
||
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 | * @param mixed $model |
||
30 | */ |
||
31 | public function setModel($model): void |
||
35 | |||
36 | /** |
||
37 | * @return mixed |
||
38 | */ |
||
39 | public function getTags() |
||
43 | |||
44 | /** |
||
45 | * @param mixed $tags |
||
46 | */ |
||
47 | public function setTags($tags): void |
||
51 | |||
52 | /** |
||
53 | * Create a new event instance. |
||
54 | * |
||
55 | * @return void |
||
|
|||
56 | */ |
||
57 | public function __construct($model, $tags) |
||
62 | |||
63 | /** |
||
64 | * Get the channels the event should broadcast on. |
||
65 | * |
||
66 | * @return \Illuminate\Broadcasting\Channel|array |
||
67 | */ |
||
68 | public function broadcastOn() |
||
72 | } |
||
73 |
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.