UserCreatedEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace App\Containers\User\Events\Events;
4
5
use App\Ship\Parents\Events\Event;
6
use Illuminate\Queue\SerializesModels;
7
8
/**
9
 * Class UserCreatedEvent
10
 *
11
 * @author  Mahmoud Zalt  <[email protected]>
12
 */
13
class UserCreatedEvent extends Event
14
{
15
16
    use SerializesModels;
17
18
    /**
19
     * @var
20
     */
21
    public $user;
22
23
    /**
24
     * UserCreatedEvent constructor.
25
     *
26
     * @param $user
27
     */
28
    public function __construct($user)
29
    {
30
        $this->user = $user;
31
    }
32
33
    /**
34
     * Get the channels the event should be broadcast on.
35
     *
36
     * @return array
37
     */
38
    public function broadcastOn()
39
    {
40
        return [];
41
    }
42
}
43