Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class Base64 { |
||
6 | |||
7 | /** |
||
8 | * Encodes a string input to a base64 encoded string which is URL safe. |
||
9 | * |
||
10 | * @param string $input The input string to encode. |
||
11 | * @return string Returns a URL safe base64 encoded string. |
||
12 | */ |
||
13 | public static function UrlSafeEncode(string $input) : string { |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * Decodes a string that is URL safe base64 encoded. |
||
19 | * |
||
20 | * @param string $input The encoded input string to decode. |
||
21 | * @return string Returns the decoded input string. |
||
22 | */ |
||
23 | public static function UrlSafeDecode(string $input) : string { |
||
31 | } |
||
32 | |||
33 | public static function JSONUrlSafeEncode(array $input) : string { |
||
35 | } |
||
36 | } |