Passed
Push — dev6 ( bf7d7f...edb7de )
by Ron
17:07
created

UserPasswordChanged::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace App\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
use Illuminate\Broadcasting\PrivateChannel;
7
use Illuminate\Broadcasting\InteractsWithSockets;
8
9
use Illuminate\Foundation\Events\Dispatchable;
10
use App\Models\User;
11
12
class UserPasswordChanged
13
{
14
    use Dispatchable;
15
    use InteractsWithSockets;
16
    use SerializesModels;
1 ignored issue
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\UserPasswordChanged: $id, $relations, $class, $connection, $keyBy
Loading history...
17
18
    public $user;
19
20
    /**
21
     * Create a new event instance.
22
     */
23
    public function __construct(User $user)
24
    {
25
        $this->user = $user;
26
    }
27
28
    /**
29
     * Get the channels the event should broadcast on.
30
     */
31
    // public function broadcastOn()
32
    // {
33
    //     return new PrivateChannel('channel-name');
34
    // }
35
}
36