Debian Codegraph @

lib/3rdParty/composer/facile-it/php-openid-client/src/Session/AuthSessionInterface.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Facile\OpenIDClient\Session;
6
7 use JsonSerializable;
8 use Override;
9
10 /**
11 * @psalm-api
12 *
13 * @psalm-type AuthSessionType = array{state?: string, nonce?: string, code_verifier?: string, customs?: array<string, mixed>}
14 */
15 interface AuthSessionInterface extends JsonSerializable
16 {
17 public function getState(): ?string;
18
19 public function getNonce(): ?string;
20
21 public function getCodeVerifier(): ?string;
22
23 /**
24 * @return array<string, mixed>
25 */
26 public function getCustoms(): array;
27
28 public function setState(?string $state): void;
29
30 public function setNonce(?string $nonce): void;
31
32 public function setCodeVerifier(?string $codeVerifier): void;
33
34 /**
35 * @param array<string, mixed> $customs
36 */
37 public function setCustoms(array $customs): void;
38
39 /**
40 * @param array<string, mixed> $array
41 *
42 * @psalm-param AuthSessionType $array
43 *
44 * @return static
45 */
46 public static function fromArray(array $array): self;
47
48 /**
49 * @return array<string, mixed>
50 *
51 * @psalm-return AuthSessionType
52 */
53 #[Override]
54 public function jsonSerialize(): array;
55 }