more examples

This commit is contained in:
smiley
2017-12-24 08:09:19 +01:00
parent 019d932d35
commit 3d2f908d24
6 changed files with 163 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
<?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{
public function dump(){
$output = '';
for($row = 0; $row < $this->moduleCount; $row++){
for($col = 0; $col < $this->moduleCount; $col++){
$output .= (int)$this->matrix->check($col, $row);
}
}
return $output;
}
}