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

SocialiteUser::lastname()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
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