Total Complexity | 5 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 45.45% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class AccessToken implements AccessTokenInterface |
||
13 | { |
||
14 | /** |
||
15 | * OpenID does not have a $token, it response $identity, it's a link to user |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $identity; |
||
20 | |||
21 | /** |
||
22 | * @var string|null |
||
23 | */ |
||
24 | protected $uid; |
||
25 | |||
26 | /** |
||
27 | * @param string $identity |
||
28 | * @param string|null $uid |
||
29 | */ |
||
30 | 1 | public function __construct($identity, ?string $uid = null) |
|
31 | { |
||
32 | 1 | $this->identity = $identity; |
|
33 | 1 | $this->uid = $uid; |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function getToken() |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | 1 | public function getUserId() |
|
48 | { |
||
49 | 1 | return $this->uid; |
|
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return int|null |
||
54 | */ |
||
55 | public function getExpires() |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * {@inheritDoc} |
||
62 | */ |
||
63 | public function getEmail() |
||
68 |