Lines
100.00%
2 / 2
Methods
100.00%
2 / 2
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| getScopesAsString | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 24 | final readonly class OidcClientConfig | |
| 25 | { | |
| 26 | /** | |
| 27 | * @param list<string> $scopes | |
| 28 | */ | |
| 29 | public function __construct( | |
| 30 | public string $clientId, | |
| 31 | #[SensitiveParameter] | |
| 32 | public string $clientSecret, | |
| 33 | public string $redirectUri, | |
| 34 | public array $scopes, | |
| 35 | ) { | |
| 36 | } | |
| 37 | ||
| 38 | public function getScopesAsString(): string | |
| 39 | { | |
| 40 | return implode(' ', $this->scopes); | |
| 41 | } | |
| 42 | } |