Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class TokenEndPoint extends BaseTokenEndPoint |
||
16 | { |
||
17 | /** |
||
18 | * @var ClientInterface |
||
19 | * @readonly |
||
20 | */ |
||
21 | private $client; |
||
22 | |||
23 | /** |
||
24 | * @var IdTokenParserInterface |
||
25 | * @readonly |
||
26 | */ |
||
27 | private $idTokenParser; |
||
28 | |||
29 | |||
30 | /** |
||
31 | * TokenEndPoint constructor. |
||
32 | * |
||
33 | * @param ClientInterface $client |
||
34 | * @param IdTokenParserInterface $idTokenParser |
||
35 | */ |
||
36 | 117 | public function __construct(ClientInterface $client, IdTokenParserInterface $idTokenParser) |
|
42 | 117 | } |
|
43 | |||
44 | /** |
||
45 | * Parse the response and set the ID Token |
||
46 | * |
||
47 | * @param array<string, mixed> $response |
||
48 | * |
||
49 | * @return TokenResponse |
||
50 | */ |
||
51 | 23 | public function parseResponse(array $response): TokenResponse |
|
60 |