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