Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 60% |
Changes | 0 |
1 | <?php |
||
40 | class NewVisitorEvent |
||
41 | { |
||
42 | use Dispatchable; |
||
43 | use InteractsWithSockets; |
||
44 | |||
45 | /** |
||
46 | * The new visitor is publicly available. |
||
47 | * |
||
48 | * @var Visitor $visitor the new visitor |
||
49 | */ |
||
50 | public $visitor; |
||
51 | |||
52 | /** |
||
53 | * Create a new event instance. |
||
54 | * |
||
55 | * @param Visitor $visitor The newly created visitor. |
||
56 | */ |
||
57 | 12 | public function __construct(Visitor $visitor) |
|
60 | 12 | } |
|
61 | |||
62 | /** |
||
63 | * Get the channels the event should broadcast on. |
||
64 | * |
||
65 | * @return PrivateChannel |
||
66 | */ |
||
67 | public function broadcastOn(): PrivateChannel |
||
72 |