Total Complexity | 13 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class callback { |
||
12 | public static function encodeData (array $data): string { |
||
13 | return tools::codec(codecAction::ENCRYPT, json_encode($data), md5(settings::$token), 'SguQgUvvKRLvmCyq')['hash']; |
||
14 | } |
||
15 | |||
16 | public static function decodeData (string $data): array { |
||
17 | return json_decode(tools::codec(codecAction::DECRYPT, $data, md5(settings::$token), 'SguQgUvvKRLvmCyq'), true); |
||
|
|||
18 | } |
||
19 | |||
20 | public static function process () { |
||
40 | } |
||
41 | |||
42 | public static function callHandler (string $handler_name, $input) { |
||
45 | } |
||
46 | } |
||
47 | } |