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