| Total Complexity | 2 | 
| Total Lines | 24 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 19 | trait UserSecretStorageTrait | ||
| 20 | { | ||
| 21 | private $encryption; | ||
| 22 | |||
| 23 | /** | ||
| 24 | * Get the user's secret | ||
| 25 | * @param String $userId | ||
| 26 | * @return String The user's secret | ||
| 27 | */ | ||
| 28 | public function getSecret($userId) | ||
| 32 | } | ||
| 33 | |||
| 34 | /** | ||
| 35 | * Store a secret for a user. | ||
| 36 | * @param String $userId | ||
| 37 | * @param String $secret | ||
| 38 | */ | ||
| 39 | public function setSecret($userId, $secret) | ||
| 45 |