| 1 | <?php |
||
| 13 | class AddressDeleted implements ShouldBroadcast |
||
| 14 | { |
||
| 15 | use SerializesModels; |
||
| 16 | use InteractsWithSockets; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The name of the queue on which to place the event. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | public $broadcastQueue = 'events'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The model instance passed to this event. |
||
| 27 | * |
||
| 28 | * @var \Rinvex\Addresses\Models\Address |
||
| 29 | */ |
||
| 30 | public $address; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Create a new event instance. |
||
| 34 | * |
||
| 35 | * @param \Rinvex\Addresses\Models\Address $address |
||
| 36 | */ |
||
| 37 | public function __construct(Address $address) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get the channels the event should broadcast on. |
||
| 44 | * |
||
| 45 | * @return \Illuminate\Broadcasting\Channel |
||
| 46 | */ |
||
| 47 | public function broadcastOn() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * The event's broadcast name. |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function broadcastAs() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Format channel name. |
||
| 64 | * |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | protected function formatChannelName(): string |
||
| 71 | } |
||
| 72 |