Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | class FirebaseJwt implements Contract |
||
29 | { |
||
30 | /** |
||
31 | * RsFirebaseJwt constructor. |
||
32 | */ |
||
33 | public function __construct( |
||
34 | protected OpenSSLAsymmetricKey|OpenSSLCertificate|string $encodeKey, |
||
35 | protected OpenSSLAsymmetricKey|OpenSSLCertificate|string $decodeKey, |
||
36 | protected Algorithm $algorithm, |
||
37 | ) { |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @inheritDoc |
||
42 | */ |
||
43 | public function encode(array $payload): string |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @inheritDoc |
||
50 | */ |
||
51 | public function decode(string $jwt): array |
||
56 |