| 1 | <?php |
||
| 16 | class UserMigrationHasBeenPersisted implements ShouldBroadcast |
||
| 17 | { |
||
| 18 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * User migration model. |
||
| 22 | * |
||
| 23 | * @var |
||
| 24 | */ |
||
| 25 | public $userMigration; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Broadcast channel name. |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | protected $channelName = 'users-migration'; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getChannelName() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $channelName |
||
| 44 | */ |
||
| 45 | public function setChannelName($channelName) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * UserMigrationhasBeenPersisted constructor. |
||
| 52 | * |
||
| 53 | * @param $userMigration |
||
| 54 | */ |
||
| 55 | public function __construct($userMigration) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Get the channels the event should broadcast on. |
||
| 62 | * |
||
| 63 | * @return Channel|array |
||
| 64 | */ |
||
| 65 | public function broadcastOn() |
||
| 69 | } |
||
| 70 |