1 | <?php |
||
18 | class QrCodeDataUriGeneratorService implements StringGeneratorServiceInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var string a totp secret key uri generated string. |
||
22 | */ |
||
23 | private $totpSecretKeyUri; |
||
24 | /** |
||
25 | * @var int the size of the qr code. Recommended size is 200 for readability. |
||
26 | */ |
||
27 | private $size; |
||
28 | |||
29 | /** |
||
30 | * QrCodeDataUriGeneratorService constructor. |
||
31 | * |
||
32 | * @param string $totpSecreteKeyUri |
||
33 | * @param int $size |
||
34 | */ |
||
35 | public function __construct(string $totpSecreteKeyUri, int $size = 200) |
||
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | public function run(): string |
||
50 | } |
||
51 |