WebsocketEventInterface.php 339 B

123456789101112131415
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Broadcasting\Events;
  4. use App\Broadcasting\Entity\WebsocketEventData;
  5. use Illuminate\Broadcasting\Channel;
  6. interface WebsocketEventInterface
  7. {
  8. public function __construct(WebsocketEventData $dto);
  9. public function broadcastOn(): Channel;
  10. public function broadcastWith(): array;
  11. }