Skip to content

Commit aef6416

Browse files
authored
Update Crypt.php
1 parent 73eb974 commit aef6416

File tree

1 file changed

+7
-2
lines changed
  • src/Ubiquity/contents/transformation/transformers

1 file changed

+7
-2
lines changed

src/Ubiquity/contents/transformation/transformers/Crypt.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
namespace Ubiquity\contents\transformation\transformers;
33

44
use Ubiquity\contents\transformation\TransformerInterface;
5+
use Ubiquity\contents\transformation\TransformerViewInterface;
56
use Ubiquity\security\data\EncryptionManager;
67

7-
class Crypt implements TransformerInterface {
8+
class Crypt implements TransformerInterface,TransformerViewInterface {
89

910
public static function transform($value) {
1011
return EncryptionManager::encrypt($value);
@@ -13,4 +14,8 @@ public static function transform($value) {
1314
public static function reverse($value) {
1415
return EncryptionManager::decryptString($value);
1516
}
16-
}
17+
18+
public static function toView($value) {
19+
return EncryptionManager::decryptString($value);
20+
}
21+
}

0 commit comments

Comments
 (0)