1 | <?php |
||
7 | final class PasswordManager implements PasswordManagerInterface |
||
8 | { |
||
9 | /** |
||
10 | * @param string $password |
||
11 | * |
||
12 | * @return string |
||
13 | * |
||
14 | * @throws EmptyPasswordException |
||
15 | */ |
||
16 | public function hash(string $password): string |
||
24 | |||
25 | /** |
||
26 | * @param string $password |
||
27 | * @param string $hash |
||
28 | * |
||
29 | * @return bool |
||
30 | */ |
||
31 | public function verify(string $password, string $hash): bool |
||
35 | } |
||
36 |