Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
15 | class Base64IDEncoder extends SimpleIDEncoder |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritDoc} |
||
19 | */ |
||
20 | public function encode(NodeInterface $node): ?string |
||
21 | { |
||
22 | return base64_encode(parent::encode($node)); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * {@inheritDoc} |
||
27 | */ |
||
28 | public function decode($globalId): ?NodeInterface |
||
31 | } |
||
32 | } |
||
33 |