1 | <?php |
||
20 | class QrCodeWidget extends Widget |
||
21 | { |
||
22 | |||
23 | use EnsureUserBehaviorAttachedTrait; |
||
24 | |||
25 | /** |
||
26 | * @var array HTML img tag attributes. |
||
27 | */ |
||
28 | public $options = []; |
||
29 | |||
30 | /** |
||
31 | * @var string an issuer will show in authenticator application. If not set an application name will be use to set by default. |
||
32 | */ |
||
33 | public $issuer; |
||
34 | |||
35 | /** |
||
36 | * @var string a label will show in authenticator application. |
||
37 | */ |
||
38 | public $label; |
||
39 | |||
40 | /** |
||
41 | * @var string a image will show in authenticator application. |
||
42 | */ |
||
43 | public $image; |
||
44 | |||
45 | /** |
||
46 | * @inheritDoc |
||
47 | */ |
||
48 | 3 | public function init() |
|
54 | |||
55 | /** |
||
56 | * @inheritDoc |
||
57 | * @throws InvalidCallException |
||
58 | */ |
||
59 | 3 | public function run() |
|
83 | |||
84 | } |
||
85 |