1 | <?php |
||
10 | final class TokenSet implements TokenSetInterface, JsonSerializable |
||
11 | { |
||
12 | /** @var array<string, mixed> */ |
||
13 | private $attributes = []; |
||
14 | |||
15 | /** @var array<string, mixed> */ |
||
16 | private $claims; |
||
17 | |||
18 | /** |
||
19 | * @param array<string, mixed> $data |
||
20 | * |
||
21 | * @return TokenSetInterface |
||
22 | */ |
||
23 | 8 | public static function fromParams(array $data): TokenSetInterface |
|
36 | |||
37 | /** |
||
38 | * Get all attributes |
||
39 | * |
||
40 | * @return array<string, mixed> |
||
|
|||
41 | */ |
||
42 | public function getAttributes(): array |
||
46 | |||
47 | /** |
||
48 | * @return string|null |
||
49 | */ |
||
50 | 1 | public function getCode(): ?string |
|
54 | |||
55 | /** |
||
56 | * @return string|null |
||
57 | */ |
||
58 | 1 | public function getState(): ?string |
|
62 | |||
63 | /** |
||
64 | * @return string|null |
||
65 | */ |
||
66 | 1 | public function getTokenType(): ?string |
|
70 | |||
71 | /** |
||
72 | * @return string|null |
||
73 | */ |
||
74 | 1 | public function getAccessToken(): ?string |
|
78 | |||
79 | /** |
||
80 | * @return string|null |
||
81 | */ |
||
82 | 1 | public function getIdToken(): ?string |
|
86 | |||
87 | /** |
||
88 | * @return string|null |
||
89 | */ |
||
90 | 1 | public function getRefreshToken(): ?string |
|
94 | |||
95 | /** |
||
96 | * @return int|null |
||
97 | */ |
||
98 | 1 | public function getExpiresIn(): ?int |
|
102 | |||
103 | /** |
||
104 | * @return string|null |
||
105 | */ |
||
106 | 1 | public function getCodeVerifier(): ?string |
|
110 | |||
111 | public function withIdToken(string $idToken): TokenSetInterface |
||
118 | |||
119 | public function withClaims(array $claims): TokenSetInterface |
||
126 | |||
127 | /** |
||
128 | * @return array<string, mixed> |
||
129 | * @phpstan-return array{code?: string, state?: string, token_type?: string, access_token?: string, id_token?: string, refresh_token?: string, expires_in?: int, code_verifier?: string} |
||
130 | */ |
||
131 | public function jsonSerialize(): array |
||
135 | |||
136 | /** |
||
137 | * @return array<string, mixed> |
||
138 | */ |
||
139 | public function claims(): array |
||
143 | } |
||
144 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.