IQRCodeProvider.php 559 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace RobThree\Auth\Providers\Qr;
  3. interface IQRCodeProvider
  4. {
  5. /**
  6. * Generate and return the QR code to embed in a web page
  7. *
  8. * @param string $qrtext the value to encode in the QR code
  9. * @param int $size the desired size of the QR code
  10. *
  11. * @return string file contents of the QR code
  12. */
  13. public function getQRCodeImage($qrtext, $size);
  14. /**
  15. * Returns the appropriate mime type for the QR code
  16. * that will be generated
  17. *
  18. * @return string
  19. */
  20. public function getMimeType();
  21. }