LoggedIn   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 24
ccs 0
cts 5
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
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