| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class ScheduleUpdatedEvent extends Event implements ShouldBroadcast |
||
| 19 | { |
||
| 20 | public $listeners = [ |
||
| 21 | ScheduleUpdatedListener::class |
||
| 22 | ]; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var schedule |
||
| 26 | */ |
||
| 27 | public $schedule; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * UserRegisteredEvent constructor. |
||
| 31 | * |
||
| 32 | * @param $user |
||
| 33 | */ |
||
| 34 | public function __construct(Schedule $schedule) |
||
| 35 | { |
||
| 36 | $this->schedule = $schedule; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function broadcastOn() |
||
| 40 | { |
||
| 41 | return new PrivateChannel('user.'.$this->schedule->user_id); |
||
|
|
|||
| 42 | } |
||
| 43 | |||
| 44 | public function broadcastAs() |
||
| 47 | } |
||
| 48 | |||
| 49 | public function broadcastWith() |
||
| 52 | } |
||
| 53 | } |
||
| 54 |