MyCustomOutput.php 625 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Class MyCustomOutput
  4. *
  5. * @filesource MyCustomOutput.php
  6. * @created 24.12.2017
  7. * @package chillerlan\QRCodeExamples
  8. * @author Smiley <smiley@chillerlan.net>
  9. * @copyright 2017 Smiley
  10. * @license MIT
  11. */
  12. namespace chillerlan\QRCodeExamples;
  13. use chillerlan\QRCode\Output\QROutputAbstract;
  14. /**
  15. */
  16. class MyCustomOutput extends QROutputAbstract{
  17. public function dump(){
  18. $output = '';
  19. for($row = 0; $row < $this->moduleCount; $row++){
  20. for($col = 0; $col < $this->moduleCount; $col++){
  21. $output .= (int)$this->matrix->check($col, $row);
  22. }
  23. }
  24. return $output;
  25. }
  26. }