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

NullUserProvider::retrieveById()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
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 Illuminate\Contracts\Auth\UserProvider;
7
8
class NullUserProvider implements UserProvider
9
{
10
    public function __construct()
11
    {
12
    }
13
14
    public function retrieveById($identifier)
15
    {
16
        return session()->get('socialite-auth.' . $identifier);
17
    }
18
19
    public function retrieveByToken($identifier, $token)
20
    {
21
    }
22
23
    public function updateRememberToken(Authenticatable $user, $token)
24
    {
25
    }
26
27
    public function retrieveByCredentials(array $credentials)
28
    {
29
    }
30
31
    public function validateCredentials(Authenticatable $user, array $credentials)
32
    {
33
        return false;
34
    }
35
}
36