2021-02-26 16:16:17 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Class MyCustomOutput
|
|
|
|
*
|
|
|
|
* @filesource MyCustomOutput.php
|
|
|
|
* @created 24.12.2017
|
|
|
|
* @package chillerlan\QRCodeExamples
|
|
|
|
* @author Smiley <smiley@chillerlan.net>
|
|
|
|
* @copyright 2017 Smiley
|
|
|
|
* @license MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace chillerlan\QRCodeExamples;
|
|
|
|
|
|
|
|
use chillerlan\QRCode\Output\QROutputAbstract;
|
|
|
|
|
|
|
|
class MyCustomOutput extends QROutputAbstract{
|
|
|
|
|
|
|
|
protected function setModuleValues():void{
|
|
|
|
// TODO: Implement setModuleValues() method.
|
|
|
|
}
|
|
|
|
|
|
|
|
public function dump(string $file = null){
|
|
|
|
|
|
|
|
$output = '';
|
|
|
|
|
|
|
|
for($row = 0; $row < $this->moduleCount; $row++){
|
|
|
|
for($col = 0; $col < $this->moduleCount; $col++){
|
|
|
|
$output .= (int)$this->matrix->check($col, $row);
|
|
|
|
}
|
2022-07-02 14:01:51 +00:00
|
|
|
|
|
|
|
$output .= \PHP_EOL;
|
2021-02-26 16:16:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return $output;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|