Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class JwtParser implements JwtParserInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var JwtDecoder |
||
20 | */ |
||
21 | private $decoder; |
||
22 | |||
23 | |||
24 | /** |
||
25 | * JwtParser constructor. |
||
26 | * |
||
27 | * @param JwtDecoder|null $decoder |
||
28 | */ |
||
29 | 23 | public function __construct(JwtDecoder $decoder = null) |
|
32 | 23 | } |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 12 | public function parse(string $jwt, ClientInterface $client): array |
|
44 |