MyCustomOutput.php 731 B

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