Passed
Push — dev6 ( b01572...e24a5d )
by Ron
19:01
created

UserReactivatedEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace App\Events\Admin;
4
5
use App\Models\User;
6
7
use Illuminate\Queue\SerializesModels;
8
use Illuminate\Foundation\Events\Dispatchable;
9
use Illuminate\Broadcasting\InteractsWithSockets;
10
11
class UserReactivatedEvent
12
{
13
    use Dispatchable;
14
    use SerializesModels;
1 ignored issue
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\Admin\UserReactivatedEvent: $id, $relations, $class, $connection, $keyBy
Loading history...
15
    use InteractsWithSockets;
16
17
    public $user;
18
19
    /**
20
     * Create a new event instance
21
     */
22
    public function __construct(User $user)
23
    {
24
        $this->user = $user;
25
    }
26
}
27