Completed
Push — dev ( 7e5692...f2c1ea )
by Darko
08:12
created

UserLoggedIn   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 24
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace App\Events;
4
5
use Illuminate\Broadcasting\Channel;
6
use Illuminate\Queue\SerializesModels;
7
use Illuminate\Broadcasting\PrivateChannel;
8
use Illuminate\Broadcasting\PresenceChannel;
9
use Illuminate\Foundation\Events\Dispatchable;
10
use Illuminate\Broadcasting\InteractsWithSockets;
11
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
12
13
class UserLoggedIn
14
{
15
    use Dispatchable, InteractsWithSockets, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\UserLoggedIn: $id, $class, $connection, $relations
Loading history...
16
17
    /**
18
     * @var \App\Models\User
19
     */
20
    public $user;
21
22
    /**
23
     * @var
24
     */
25
    public $ip;
26
27
    /**
28
     * Create a new event instance.
29
     *
30
     * @param $user
31
     * @param $ip
32
     */
33
    public function __construct($user, $ip)
34
    {
35
        $this->user = $user;
36
        $this->ip = $ip;
37
    }
38
}
39