@@ -17,6 +17,9 @@ discard block |
||
| 17 | 17 | protected $type = Identity::TYPE_ONETIME; |
| 18 | 18 | |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param string $nonce |
|
| 22 | + */ |
|
| 20 | 23 | public function setNonce($nonce) |
| 21 | 24 | { |
| 22 | 25 | $this->nonce = (string) $nonce; |
@@ -52,6 +55,9 @@ discard block |
||
| 52 | 55 | } |
| 53 | 56 | |
| 54 | 57 | |
| 58 | + /** |
|
| 59 | + * @param string $key |
|
| 60 | + */ |
|
| 55 | 61 | private function makeHash($key) |
| 56 | 62 | { |
| 57 | 63 | $hash = password_hash($key, self::HASH_ALGO, ['cost' => self::HASH_COST]); |