Passed
Push — main ( 38efe3...191e7f )
by Marco Aurélio
05:13
created

NativeSessionUserProvider::retrieveById()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
c 1
b 0
f 0
dl 0
loc 2
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php declare(strict_types=1);
2
3
namespace CustomerGauge\Session;
4
5
use CustomerGauge\Session\Contracts\UserFactory;
6
use Illuminate\Contracts\Auth\Authenticatable as LaravelAuthenticatable;
7
use Illuminate\Contracts\Auth\UserProvider;
8
9
final class NativeSessionUserProvider implements UserProvider
10
{
11
    private $factory;
12
13 2
    public function __construct(UserFactory $factory)
14
    {
15 2
        $this->factory = $factory;
16
    }
17
18 1
    public function retrieveByCredentials(array $session)
19
    {
20 1
        return $this->factory->make($session);
21
    }
22
23
    /** @phpstan-ignore-next-line */
24
    public function retrieveById($identifier)
25
    {}
26
27
    /** @phpstan-ignore-next-line */
28
    public function retrieveByToken($identifier, $token)
29
    {}
30
31
    public function updateRememberToken(LaravelAuthenticatable $user, $token)
32
    {}
33
34
    /** @phpstan-ignore-next-line */
35
    public function validateCredentials(LaravelAuthenticatable $user, array $credentials)
36
    {}
37
}