blob: e53a5adbdf01ddca8a6d2dda493021f4f45a074f [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001<?php
2
3namespace RobThree\Auth\Providers\Qr;
4
5interface IQRCodeProvider
6{
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02007 /**
8 * Generate and return the QR code to embed in a web page
9 *
10 * @param string $qrtext the value to encode in the QR code
11 * @param int $size the desired size of the QR code
12 *
13 * @return string file contents of the QR code
14 */
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010015 public function getQRCodeImage($qrtext, $size);
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020016
17 /**
18 * Returns the appropriate mime type for the QR code
19 * that will be generated
20 *
21 * @return string
22 */
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010023 public function getMimeType();
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020024}