1 | <?php |
||
8 | trait QRCode |
||
9 | { |
||
10 | /** |
||
11 | * Creates a Google QR code url. |
||
12 | * |
||
13 | * @param string $company |
||
14 | * @param string $holder |
||
15 | * @param string $secret |
||
16 | * @param int $size |
||
17 | * |
||
18 | * @return string |
||
19 | */ |
||
20 | public function getQRCodeGoogleUrl($company, $holder, $secret, $size = 200) |
||
26 | |||
27 | /** |
||
28 | * Generates a QR code data url to display inline. |
||
29 | * |
||
30 | * @param string $company |
||
31 | * @param string $holder |
||
32 | * @param string $secret |
||
33 | * @param int $size |
||
34 | * @param string $encoding Default to UTF-8 |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getQRCodeInline($company, $holder, $secret, $size = 200, $encoding = 'utf-8') |
||
51 | |||
52 | /** |
||
53 | * Creates a QR code url. |
||
54 | * |
||
55 | * @param $company |
||
56 | * @param $holder |
||
57 | * @param $secret |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getQRCodeUrl($company, $holder, $secret) |
||
65 | } |
||
66 |