Completed
Push — master ( ac6145...bdf07d )
by Şəhriyar
14:49
created

Updated   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

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 6
cts 6
cp 1
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 1
    public function __construct(UserInterface $user, UserInterface $userAfter, $oauthProviderName = null)
29
    {
30 1
        $this->userBefore = $user;
31 1
        $this->userAfter = $userAfter;
32 1
        $this->oauthProviderName = $oauthProviderName;
33
34 1
        parent::__construct();
35 1
    }
36
}
37