1 | <?php |
||
19 | class TwoFactorCodeValidator implements ValidatorInterface |
||
20 | { |
||
21 | protected $user; |
||
22 | protected $code; |
||
23 | protected $cycles; |
||
24 | |||
25 | /** |
||
26 | * TwoFactorCodeValidator constructor. |
||
27 | * |
||
28 | * @param User $user |
||
29 | * @param $code |
||
30 | * @param int $cycles |
||
31 | */ |
||
32 | public function __construct(User $user, $code, $cycles = 0) |
||
38 | |||
39 | /** |
||
40 | * @throws InvalidSecretKeyException |
||
41 | * @return bool|int |
||
42 | * |
||
43 | */ |
||
44 | public function validate() |
||
49 | } |
||
50 |