Total Complexity | 6 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | trait AuthCodeTrait |
||
16 | { |
||
17 | protected ?string $redirectUri = null; |
||
18 | |||
19 | 4 | /** |
|
20 | * The code challenge (if provided) |
||
21 | 4 | */ |
|
22 | protected ?string $codeChallenge; |
||
23 | |||
24 | 1 | /** |
|
25 | * The code challenge method (if provided) |
||
26 | 1 | */ |
|
27 | protected ?string $codeChallengeMethod; |
||
28 | |||
29 | public function getRedirectUri(): ?string |
||
30 | { |
||
31 | return $this->redirectUri; |
||
32 | } |
||
33 | |||
34 | public function setRedirectUri(?string $uri): void |
||
35 | { |
||
36 | $this->redirectUri = $uri; |
||
37 | } |
||
38 | |||
39 | public function getCodeChallenge(): ?string |
||
40 | { |
||
41 | return $this->codeChallenge ?? null; |
||
42 | } |
||
43 | |||
44 | public function setCodeChallenge(?string $codeChallenge): void |
||
45 | { |
||
46 | $this->codeChallenge = $codeChallenge; |
||
47 | } |
||
48 | |||
49 | public function getCodeChallengeMethod(): ?string |
||
52 | } |
||
53 | |||
54 | public function setCodeChallengeMethod(?string $codeChallengeMethod): void |
||
57 | } |
||
58 | } |
||
59 |