SocialUserDetached   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 30
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace MadWeb\SocialAuth\Events;
4
5
use MadWeb\SocialAuth\Contracts\SocialAuthenticatable;
6
7
class SocialUserDetached extends SocialEvent
8
{
9
    /**
10
     * @var SocialAuthenticatable
11
     */
12
    public $user;
13
14
    /**
15
     * @var object
16
     */
17
    public $social;
18
19
    /**
20
     * @var bool
21
     */
22
    public $isSuccess;
23
24
    /**
25
     * SocialUserAuthenticated constructor.
26
     * @param SocialAuthenticatable $user
27
     * @param $social
28
     * @param bool $isSuccess
29
     */
30 6
    public function __construct(SocialAuthenticatable $user, $social, bool $isSuccess)
31
    {
32 6
        $this->user = $user;
33 6
        $this->social = $social;
34 6
        $this->isSuccess = $isSuccess;
35 6
    }
36
}
37