| Total Complexity | 4 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | final class ObjectIdEncrypter |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Holds the metadata separator. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private static $separator = '::'; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Encrypt the given searchable. |
||
| 32 | * |
||
| 33 | * @param mixed $searchable |
||
| 34 | * |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public static function encrypt($searchable): string |
||
| 44 | ]); |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $objectId |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public static function decryptSearchableUuid(string $objectId): string |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @param string $objectId |
||
| 59 | * |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | public static function decryptSearchableKey(string $objectId): string |
||
| 67 |