Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 63.64% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | class Tiqr_UserStorage_Encryption |
||
28 | { |
||
29 | /** |
||
30 | * Get an encryption handler of a certain type (default: 'file') |
||
31 | * |
||
32 | * @param String $type The type of storage to create. Supported |
||
33 | * types are 'dummy', 'mcrypt' or the full class name. |
||
34 | * @param array $options The options to pass to the storage |
||
35 | * instance. See the documentation |
||
36 | * in the Encryption subdirectory for |
||
37 | * options per type. |
||
38 | * |
||
39 | * @return Tiqr_UserSecretStorage_Encryption_Interface |
||
40 | */ |
||
41 | 11 | public static function getEncryption(LoggerInterface $logger, string $type="dummy", array $options=array()): Tiqr_UserSecretStorage_Encryption_Interface |
|
58 |