1 | <?php |
||
9 | class TwoFactorCodeValidator implements ValidatorInterface |
||
10 | { |
||
11 | protected $user; |
||
12 | protected $code; |
||
13 | protected $cycles; |
||
14 | |||
15 | /** |
||
16 | * TwoFactorCodeValidator constructor. |
||
17 | * |
||
18 | * @param User $user |
||
19 | * @param $code |
||
20 | * @param int $cycles |
||
21 | */ |
||
22 | public function __construct(User $user, $code, $cycles = 0) |
||
28 | |||
29 | /** |
||
30 | * @return bool|int |
||
31 | */ |
||
32 | public function validate() |
||
37 | } |
||
38 |