| 1 | <?php |
||
| 21 | trait QRAuthenticator{ |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var \chillerlan\QRCode\QROptions |
||
| 25 | */ |
||
| 26 | protected $qrOptions; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $authenticatorSecret; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var int |
||
| 35 | */ |
||
| 36 | protected $authenticatorDigits = Authenticator::DEFAULT_DIGITS; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var int |
||
| 40 | */ |
||
| 41 | protected $authenticatorPeriod = Authenticator::DEFAULT_PERIOD; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @var string |
||
| 45 | */ |
||
| 46 | protected $authenticatorMode = Authenticator::DEFAULT_AUTH_MODE; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @var string |
||
| 50 | */ |
||
| 51 | protected $authenticatorAlgo = Authenticator::DEFAULT_HASH_ALGO; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param string $label |
||
| 55 | * @param string $issuer |
||
| 56 | * |
||
| 57 | * @return mixed |
||
| 58 | */ |
||
| 59 | protected function getURIQRCode(string $label, string $issuer) { |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return \chillerlan\Authenticator\Authenticator |
||
| 67 | */ |
||
| 68 | protected function getAuthenticator():Authenticator { |
||
| 76 | |||
| 77 | } |
||
| 78 |