Completed
Push — master ( 52caec...ac6145 )
by Şəhriyar
17:22
created

Updated::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

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 8
ccs 0
cts 7
cp 0
rs 9.4286
cc 1
eloc 5
nc 1
nop 3
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 Updated extends EventAbstract
7
{
8
    /**
9
     * @var \Cartalyst\Sentinel\Users\UserInterface
10
     */
11
    public $userBefore;
12
13
    /**
14
     * @var \Cartalyst\Sentinel\Users\UserInterface
15
     */
16
    public $userAfter;
17
18
    /**
19
     * @var null|string
20
     */
21
    public $oauthProviderName;
22
23
    /**
24
     * @param \Cartalyst\Sentinel\Users\UserInterface $user
25
     * @param \Cartalyst\Sentinel\Users\UserInterface $userAfter
26
     * @param string|null                             $oauthProviderName
27
     */
28
    public function __construct(UserInterface $user, UserInterface $userAfter, $oauthProviderName = null)
29
    {
30
        $this->userBefore = $user;
31
        $this->userAfter = $userAfter;
32
        $this->oauthProviderName = $oauthProviderName;
33
34
        parent::__construct();
35
    }
36
}
37