1 | <?php |
||
16 | final class GoogleQrCodeUrlGeneratorService implements StringGeneratorServiceInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var string a totp secret key uri generated string. |
||
20 | */ |
||
21 | private $totpSecretKeyUri; |
||
22 | /** |
||
23 | * @var int the size of the qr code. Recommended size is 200 for readability. |
||
24 | */ |
||
25 | private $size; |
||
26 | |||
27 | /** |
||
28 | * GoogleQrCodeUrlService constructor. |
||
29 | * |
||
30 | * @param string $totpSecreteKeyUri |
||
31 | * @param int $size |
||
32 | */ |
||
33 | public function __construct(string $totpSecreteKeyUri, int $size = 200) |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | public function run(): string |
||
46 | |||
47 | /** |
||
48 | * @return string the constructed query parameters for google charts. |
||
49 | */ |
||
50 | protected function getQueryParameters(): string |
||
59 | } |
||
60 |