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

UserAccessedApi   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 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 UserAccessedApi
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\UserAccessedApi: $id, $class, $connection, $relations
Loading history...
16
17
    /**
18
     * @var \App\Models\User
19
     */
20
    public $user;
21
22
    /**
23
     * Create a new event instance.
24
     *
25
     * @param $user
26
     */
27
    public function __construct($user)
28
    {
29
        $this->user = $user;
30
    }
31
}
32