| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | class NewVisitorEvent |
||
| 44 | { |
||
| 45 | use Dispatchable; |
||
| 46 | |||
| 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 | public function __construct(Visitor $visitor) |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Get the channels the event should broadcast on. |
||
| 64 | * |
||
| 65 | * @return PrivateChannel |
||
| 66 | */ |
||
| 67 | public function broadcastOn() |
||
| 72 |