CompletedInfo.php 873 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace App\Events;
  3. use Illuminate\Queue\SerializesModels;
  4. use Illuminate\Broadcasting\PrivateChannel;
  5. use Illuminate\Foundation\Events\Dispatchable;
  6. use Illuminate\Broadcasting\InteractsWithSockets;
  7. /**
  8. * 补全信息完成
  9. * Class CompletedInfo
  10. * @package App\Events
  11. */
  12. class CompletedInfo
  13. {
  14. use Dispatchable;
  15. use InteractsWithSockets;
  16. use SerializesModels;
  17. /** @var int */
  18. public $is_remind_uid;
  19. /**
  20. * Create a new event instance.
  21. *
  22. * @param int $is_remind_uid
  23. */
  24. public function __construct(int $is_remind_uid)
  25. {
  26. $this->is_remind_uid = $is_remind_uid;
  27. }
  28. /**
  29. * Get the channels the event should broadcast on.
  30. *
  31. * @return \Illuminate\Broadcasting\Channel|array
  32. */
  33. public function broadcastOn()
  34. {
  35. return new PrivateChannel('channel-name');
  36. }
  37. }