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
2namespace Apie\OtpValueObjects;
3
4use Apie\Core\Attributes\Description;
5use Apie\Core\Attributes\ProvideIndex;
6use Apie\Core\Entities\EntityInterface;
7use 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')]
15abstract 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}