Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
VerifyOTP | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
getOtpReference | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | |||||
getOtpLabel | n/a |
0 / 0 |
n/a |
0 / 0 |
0 |
1 | <?php |
2 | namespace Apie\OtpValueObjects; |
3 | |
4 | use Apie\Core\Attributes\Description; |
5 | use Apie\Core\Attributes\ProvideIndex; |
6 | use Apie\Core\Entities\EntityInterface; |
7 | use ReflectionProperty; |
8 | |
9 | /** |
10 | * Use and extend this class if you want to enable 2FA action by telling the property of the OTP secret |
11 | * and the label required to generate the QR Code. |
12 | */ |
13 | #[ProvideIndex('noIndexing')] |
14 | #[Description('One time password, used in combination with HOTP or TOTP')] |
15 | abstract class VerifyOTP extends OTP |
16 | { |
17 | /** |
18 | * @return ReflectionProperty |
19 | */ |
20 | abstract public static function getOtpReference(): ReflectionProperty; |
21 | |
22 | abstract public static function getOtpLabel(EntityInterface $entity): string; |
23 | } |