Files
TwoFactorAuth/lib/Providers/Qr/IQRCodeProvider.php
T
William Hall 33a32cb099 📚 doc blocks
2021-03-08 18:24:44 +00:00

25 lines
559 B
PHP

<?php
namespace RobThree\Auth\Providers\Qr;
interface IQRCodeProvider
{
/**
* Generate and return the QR code to embed in a web page
*
* @param string $qrtext the value to encode in the QR code
* @param int $size the desired size of the QR code
*
* @return string file contents of the QR code
*/
public function getQRCodeImage($qrtext, $size);
/**
* Returns the appropriate mime type for the QR code
* that will be generated
*
* @return string
*/
public function getMimeType();
}