MyCustomOutput.php 739 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. protected function setModuleValues():void{
  18. // TODO: Implement setModuleValues() method.
  19. }
  20. public function dump(string $file = null){
  21. $output = '';
  22. for($row = 0; $row < $this->moduleCount; $row++){
  23. for($col = 0; $col < $this->moduleCount; $col++){
  24. $output .= (int)$this->matrix->check($col, $row);
  25. }
  26. }
  27. return $output;
  28. }
  29. }