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