| Total Complexity | 2 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class JwtManager implements JwtManagerInterface |
||
| 11 | { |
||
| 12 | 1 | public function __construct( |
|
| 13 | private readonly ConfigProviderInterface $config |
||
|
|
|||
| 14 | ) { |
||
| 15 | } |
||
| 16 | |||
| 17 | 1 | public function encode(array $payload): string |
|
| 18 | { |
||
| 19 | 1 | return JWT::encode($payload, $this->config->getJwtSecret()); |
|
| 20 | } |
||
| 22 |