Completed
Pull Request — master (#19)
by Şəhriyar
10:40
created

LoggedIn::__construct()   A

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 2
Bugs 1 Features 2
Metric Value
c 2
b 1
f 2
dl 0
loc 7
ccs 0
cts 6
cp 0
rs 9.4286
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 Cartalyst\Sentinel\Users\UserInterface;
5
6
class LoggedIn extends EventAbstract
7
{
8
    /**
9
     * @var array|\Cartalyst\Sentinel\Users\UserInterface
10
     */
11
    public $user;
12
13
    /**
14
     * @var null|string
15
     */
16
    public $oauthProviderNameIfApplicable;
17
18
    /**
19
     * @param \Cartalyst\Sentinel\Users\UserInterface $user
20
     * @param string|null                             $oauthProviderName
21
     */
22
    public function __construct(UserInterface $user, $oauthProviderName = null)
23
    {
24
        $this->user = $user;
25
        $this->oauthProviderNameIfApplicable = $oauthProviderName;
26
27
        parent::__construct();
28
    }
29
}
30