Completed
Push — master ( 5932ed...faf75e )
by Joseph
06:23
created

Identity::setRememberToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace STS\SocialiteAuth;
4
5
use Illuminate\Contracts\Auth\Authenticatable;
6
use Laravel\Socialite\Contracts\User;
7
8
class Identity implements Authenticatable
9
{
10
    public $socialite;
11
12
    public $name;
13
    public $email;
14
    public $avatar;
15
16
    public function __construct(User $user)
17
    {
18
        $this->socialite = $user;
19
        $this->name = $user->getName();
20
        $this->email = $user->getEmail();
21
        $this->avatar = $user->getAvatar();
22
    }
23
24
    public function getAuthIdentifier()
25
    {
26
        return $this->email;
27
    }
28
29
    public function getAuthIdentifierName()
30
    {
31
        return 'email';
32
    }
33
34
    public function getAuthPassword()
35
    {
36
    }
37
38
    public function getRememberToken()
39
    {
40
    }
41
42
    public function getRememberTokenName()
43
    {
44
    }
45
46
    public function setRememberToken($value)
47
    {
48
    }
49
}
50