Test Setup Failed
Push — master ( dcfdf2...6863da )
by guillaume
16:18 queued 10:15
created

SocialiteUser   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
dl 0
loc 41
rs 10
c 1
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A lastname() 0 3 1
A firstname() 0 3 1
A email() 0 3 1
A pictureUrl() 0 3 1
A providerId() 0 3 1
A __construct() 0 7 1
1
<?php
2
3
4
namespace App\Src\UseCases\Domain\Auth;
5
6
7
class SocialiteUser
8
{
9
    private $providerId;
10
    private $email;
11
    private $firstname;
12
    private $lastname;
13
    private $pictureUrl;
14
15
    public function __construct(string $providerId, string $email, string $firstname, string $lastname, string $pictureUrl = null)
16
    {
17
        $this->providerId = $providerId;
18
        $this->email = $email;
19
        $this->firstname = $firstname;
20
        $this->lastname = $lastname;
21
        $this->pictureUrl = $pictureUrl;
22
    }
23
24
25
    public function providerId(): string
26
    {
27
        return $this->providerId;
28
    }
29
30
    public function email(): string
31
    {
32
        return $this->email;
33
    }
34
35
    public function firstname(): string
36
    {
37
        return $this->firstname;
38
    }
39
40
    public function lastname(): string
41
    {
42
        return $this->lastname;
43
    }
44
45
    public function pictureUrl(): ?string
46
    {
47
        return $this->pictureUrl;
48
    }
49
50
}
51