Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class DecryptSettings |
||
10 | { |
||
11 | private static ?string $defaultKey = null; |
||
12 | |||
13 | /** |
||
14 | * @param string|NULL $decryptionKey A decryption key |
||
15 | * @return void |
||
16 | */ |
||
17 | public static function setDefaultKey(?string $decryptionKey): void |
||
18 | { |
||
19 | self::$defaultKey = $decryptionKey; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Gets the default decryption key for decryption. If not set via |
||
24 | * {@see self::setDefaultDecryptionKey()}, this defaults to {@see DecryptInterface::DEFAULT_DECRYPTION_KEY}. |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | public static function getDefaultKey(): string |
||
31 | } |
||
32 | } |
||
33 |