File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 7
7
/**
8
8
* @method static bool canPromptTouchID()
9
9
* @method static bool promptTouchID(string $reason)
10
+ * @method static bool canEncrypt()
11
+ * @method static string encrypt(string $string)
12
+ * @method static string decrypt(string $string)
10
13
* @method static array printers()
11
14
* @method static void print(string $html, ?\Native\Laravel\DataObjects\Printer $printer = null)
12
15
* @method static string printToPDF(string $reason)
Original file line number Diff line number Diff line change @@ -27,16 +27,16 @@ public function canEncrypt(): bool
27
27
return $ this ->client ->get ('system/can-encrypt ' )->json ('result ' );
28
28
}
29
29
30
- public function encrypt (string $ string ): string
30
+ public function encrypt (string $ string ): ? string
31
31
{
32
- $ this ->client ->post ('system/encrypt ' , [
32
+ return $ this ->client ->post ('system/encrypt ' , [
33
33
'string ' => $ string ,
34
34
])->json ('result ' );
35
35
}
36
36
37
- public function decrypt (string $ string ): string
37
+ public function decrypt (string $ string ): ? string
38
38
{
39
- $ this ->client ->post ('system/decrypt ' , [
39
+ return $ this ->client ->post ('system/decrypt ' , [
40
40
'string ' => $ string ,
41
41
])->json ('result ' );
42
42
}
You can’t perform that action at this time.
0 commit comments