Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php declare(strict_types=1);
2
3/**
4 * OTP Interface
5 * 
6 * @author Eko Junaidi Salam <[email protected]>
7 */
8
9namespace Ekojs\Otp;
10
11use FurqanSiddiqui\BIP39\Wordlist;
12use Endroid\QrCode\Writer\Result\ResultInterface;
13
14interface OTPInterface
15{
16    public function getParams(): ?array;
17    public function createOTP(?array $params=null): OTPInterface;
18    public function generateQr(?string $logo=null, bool $setLabel=false, int $size=200): ResultInterface;
19    public function generateBackupCodes(string $entropy, ?WordList $wordList=null): array;
20    public function reverseMnemonic($words): string;
21}