Completed
Push — master ( 090677...bcfcea )
by guillaume
24:23 queued 24:23
created

UserDeleted::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace App\Events;
4
5
use Illuminate\Broadcasting\Channel;
6
use Illuminate\Broadcasting\InteractsWithSockets;
7
use Illuminate\Broadcasting\PresenceChannel;
8
use Illuminate\Broadcasting\PrivateChannel;
9
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
10
use Illuminate\Foundation\Events\Dispatchable;
11
use Illuminate\Queue\SerializesModels;
12
13
class UserDeleted
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\UserDeleted: $id, $relations, $class, $connection, $keyBy
Loading history...
16
17
    public $userId;
18
    public $organizationId;
19
20
    public function __construct(string $userId, string $organizationId = null)
21
    {
22
        $this->userId = $userId;
23
        $this->organizationId = $organizationId;
24
    }
25
}
26