QRDataInterface.php 703 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Interface QRDataInterface
  4. *
  5. * @filesource QRDataInterface.php
  6. * @created 01.12.2015
  7. * @package chillerlan\QRCode\Data
  8. * @author Smiley <smiley@chillerlan.net>
  9. * @copyright 2015 Smiley
  10. * @license MIT
  11. */
  12. namespace chillerlan\QRCode\Data;
  13. use chillerlan\QRCode\BitBuffer;
  14. /**
  15. * @property string data
  16. * @property int dataLength
  17. * @property int mode
  18. */
  19. interface QRDataInterface{
  20. /**
  21. * @param \chillerlan\QRCode\BitBuffer $buffer
  22. * @return void
  23. */
  24. public function write(BitBuffer &$buffer);
  25. /**
  26. * @param $type
  27. *
  28. * @return int
  29. * @throws \chillerlan\QRCode\Data\QRCodeDataException
  30. */
  31. public function getLengthInBits($type);
  32. }