@@ -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]); |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | |
| 9 | 9 | use Palladium\Component\DataMapper; |
| 10 | 10 | use Palladium\Entity as Entity; |
| 11 | -use PDOStatement; |
|
| 12 | 11 | |
| 13 | 12 | class OneTimeIdentity extends DataMapper |
| 14 | 13 | { |