Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
28 | class Tiqr_UserSecretStorage_Encryption_Plain implements Tiqr_UserSecretStorage_Encryption_Interface |
||
29 | { |
||
30 | /** |
||
31 | * Construct an encryption instance. |
||
32 | * |
||
33 | * @param Array $config The configuration that a specific configuration class may use. |
||
34 | * |
||
35 | */ |
||
36 | 28 | public function __construct(array $config) |
|
37 | { |
||
38 | 28 | } |
|
39 | |||
40 | /** |
||
41 | * Encrypts the given data. |
||
42 | * |
||
43 | * @param String $data Data to encrypt. |
||
44 | * |
||
45 | * @return String encrypted data |
||
46 | */ |
||
47 | 6 | public function encrypt(string $data) : string |
|
50 | } |
||
51 | |||
52 | /** |
||
53 | * Decrypts the given data. |
||
54 | * |
||
55 | * @param String $data Data to decrypt. |
||
56 | * |
||
57 | * @return String decrypted data |
||
58 | */ |
||
59 | 4 | public function decrypt(string $data) : string |
|
60 | { |
||
61 | 4 | return $data; |
|
62 | } |
||
63 | |||
64 | 8 | public function get_type() : string |
|
67 | } |
||
68 | } |
||
69 |