Completed
Push — master ( b1a403...6e9e84 )
by Marcel
11s queued 10s
created

Confirmed::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace BeyondCode\EmailConfirmation\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
7
/**
8
 * Class Confirmed
9
 * @package BeyondCode\EmailConfirmation\Events
10
 */
11
class Confirmed
12
{
13
    use SerializesModels;
14
15
    /**
16
     * The authenticated user.
17
     *
18
     * @var \Illuminate\Contracts\Auth\Authenticatable
19
     */
20
    public $user;
21
22
    /**
23
     * Create a new event instance.
24
     *
25
     * @param  \Illuminate\Contracts\Auth\Authenticatable  $user
26
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
27
     */
28
    public function __construct($user)
29
    {
30
        $this->user = $user;
31
    }
32
}