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

Updated   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 1 Features 2
Metric Value
wmc 1
c 2
b 1
f 2
lcom 0
cbo 1
dl 0
loc 31
ccs 0
cts 7
cp 0
rs 10

1 Method

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