1 | <?php |
||
32 | class Table extends AbstractTable |
||
|
|||
33 | { |
||
34 | /** |
||
35 | * Call Hash Function |
||
36 | * |
||
37 | * @param string $password |
||
38 | * |
||
39 | * @throws \Application\Exception |
||
40 | * @return string |
||
41 | */ |
||
42 | public static function hash($password) : string |
||
53 | |||
54 | /** |
||
55 | * Call Verify Function |
||
56 | * |
||
57 | * @param string $password |
||
58 | * @param string $hash |
||
59 | * |
||
60 | * @throws \Application\Exception |
||
61 | * @return bool |
||
62 | */ |
||
63 | 4 | public static function verify($password, $hash) : bool |
|
74 | |||
75 | /** |
||
76 | * Can entity login |
||
77 | * |
||
78 | * @param $user |
||
79 | * |
||
80 | * @throws AuthException |
||
81 | */ |
||
82 | 1 | public static function tryLogin($user) : void |
|
97 | } |
||
98 |