Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
LoggedOut
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App\Events\User;
4
5use App\Http\Models\Auth\User;
6use Illuminate\Broadcasting\InteractsWithSockets;
7use Illuminate\Foundation\Events\Dispatchable;
8use Illuminate\Queue\SerializesModels;
9
10class LoggedOut
11{
12    use Dispatchable, InteractsWithSockets, SerializesModels;
13
14    public $user;
15
16    public $data;
17
18    /**
19     * Create a new event instance.
20     *
21     * @return void
22     */
23    public function __construct(User $user, ?array $data)
24    {
25        $this->user = $user;
26        $this->data = $data;
27    }
28}