Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class ImageSaved |
||
12 | { |
||
13 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
|
|||
14 | /** |
||
15 | * @var Image |
||
16 | */ |
||
17 | private $image; |
||
18 | |||
19 | /** |
||
20 | * Create a new event instance. |
||
21 | * |
||
22 | * @param Image $image |
||
23 | */ |
||
24 | public function __construct(Image $image) |
||
25 | { |
||
26 | $this->image = $image; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return Image |
||
31 | */ |
||
32 | public function getImage(): Image |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Get the channels the event should broadcast on. |
||
39 | * |
||
40 | * @return \Illuminate\Broadcasting\Channel|array |
||
41 | */ |
||
42 | public function broadcastOn() |
||
45 | } |
||
46 | } |
||
47 |