QRByte.php 736 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * This file is part of the phpQr package
  4. *
  5. * See @see QRCode class for description of package and license.
  6. */
  7. /**
  8. * Import necessary dependencies
  9. */
  10. require_once 'QRBitBuffer.php';
  11. /**
  12. * This interface describes a QRByte implementation
  13. *
  14. * @author Maik Greubel <[email protected]>
  15. * @package phpQr
  16. */
  17. interface QRByte
  18. {
  19. /**
  20. * Retrieve the mode
  21. *
  22. * @return int The mode
  23. */
  24. public function getMode();
  25. /**
  26. * Retrieve the length
  27. *
  28. * @return int The length
  29. */
  30. public function getLength();
  31. /**
  32. * Write data to byte
  33. *
  34. * @param QRBitBuffer $buffer The data to write into byte
  35. */
  36. public function write(QRBitBuffer $buffer);
  37. }