1 | <?php |
||
17 | class BaseModelEvent |
||
18 | { |
||
19 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
20 | |||
21 | /** |
||
22 | * @var |
||
23 | */ |
||
24 | protected $model; |
||
25 | |||
26 | /** |
||
27 | * Create a new event instance. |
||
28 | * @param $model |
||
29 | */ |
||
30 | public function __construct($model) |
||
34 | |||
35 | /** |
||
36 | * Get the channels the event should broadcast on. |
||
37 | * |
||
38 | * @return PrivateChannel |
||
39 | */ |
||
40 | public function broadcastOn() |
||
44 | |||
45 | /** |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public function getModel() |
||
52 | |||
53 | /** |
||
54 | * @param mixed $model |
||
55 | */ |
||
56 | public function setModel($model) |
||
60 | } |