Completed
Pull Request — master (#42)
by Şəhriyar
329:26 queued 326:27
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 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 31
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

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 Illuminate\Contracts\Auth\Authenticatable;
5
6
class Updated extends EventAbstract
7
{
8
    /**
9
     * @var \Illuminate\Contracts\Auth\Authenticatable
10
     */
11
    public $userBefore;
12
13
    /**
14
     * @var \Illuminate\Contracts\Auth\Authenticatable
15
     */
16
    public $userAfter;
17
18
    /**
19
     * @var null|string
20
     */
21
    public $oauthProviderName;
22
23
    /**
24
     * @param \Illuminate\Contracts\Auth\Authenticatable $user
25
     * @param \Illuminate\Contracts\Auth\Authenticatable $userAfter
26
     * @param string|null                                $oauthProviderName
27
     */
28
    public function __construct(Authenticatable $user, Authenticatable $userAfter, $oauthProviderName = null)
29
    {
30
        $this->userBefore = $user;
31
        $this->userAfter = $userAfter;
32
        $this->oauthProviderName = $oauthProviderName;
33
34
        parent::__construct();
35
    }
36
}
37