LoggedIn::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 2
crap 2
1
<?php namespace App\Events\Users;
2
3
use App\Events\Event as EventAbstract;
4
use Illuminate\Contracts\Auth\Authenticatable;
5
6
class LoggedIn extends EventAbstract
7
{
8
    /**
9
     * @var array|\Illuminate\Contracts\Auth\Authenticatable
10
     */
11
    public $user;
12
13
    /**
14
     * @var null|string
15
     */
16
    public $oauthProviderNameIfApplicable;
17
18
    /**
19
     * @param \Illuminate\Contracts\Auth\Authenticatable $user
20
     * @param string|null                                $oauthProviderName
21
     */
22
    public function __construct(Authenticatable $user, $oauthProviderName = null)
23
    {
24
        $this->user = $user;
25
        $this->oauthProviderNameIfApplicable = $oauthProviderName;
26
27
        parent::__construct();
28
    }
29
}
30