QRrsblock.php 456 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * QRrsblock.php
  4. *
  5. * Created by arielferrandini
  6. */
  7. namespace PHPQRCode;
  8. class QRrsblock {
  9. public $dataLength;
  10. public $data = array();
  11. public $eccLength;
  12. public $ecc = array();
  13. public function __construct($dl, $data, $el, &$ecc, QRrsItem $rs)
  14. {
  15. $rs->encode_rs_char($data, $ecc);
  16. $this->dataLength = $dl;
  17. $this->data = $data;
  18. $this->eccLength = $el;
  19. $this->ecc = $ecc;
  20. }
  21. };