Completed
Push — master ( 52970f...c6d773 )
by Tristan
24:57 queued 10:40
created

UserCreated::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace App\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
use App\Models\User;
7
8
class UserCreated
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class UserCreated
Loading history...
9
{
10
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\UserCreated: $id, $class, $connection, $relations
Loading history...
11
12
    public $user;
13
14
    /**
0 ignored issues
show
Coding Style introduced by
Parameter $user should have a doc-comment as per coding-style.
Loading history...
15
     * Create a new event instance.
16
     *
17
     * @return void
18
     */
19 62
    public function __construct(User $user)
20
    {
21 62
        $this->user = $user;
22 62
    }
23
}
24