:feelsgood:

This commit is contained in:
smiley
2015-12-03 17:38:50 +01:00
parent 514f95c742
commit 02b289e366
9 changed files with 319 additions and 379 deletions
+9 -4
View File
@@ -1,5 +1,6 @@
<?php
/**
* Class Byte
*
* @filesource Byte.php
* @created 25.11.2015
@@ -18,7 +19,7 @@ use codemasher\QRCode\Data\QRDataInterface;
/**
* Class Byte
*
*/
class Byte extends QRDataBase implements QRDataInterface{
@@ -27,14 +28,18 @@ class Byte extends QRDataBase implements QRDataInterface{
*/
public $mode = QRConst::MODE_BYTE;
/**
* @var array
*/
protected $lengthBits = [8, 16, 16];
/**
* @param $buffer
*/
public function write(BitBuffer &$buffer){
$len = strlen($this->data);
for($i = 0; $i < $len; $i++){
for($i = 0; $i < $this->dataLength; $i++){
$buffer->put(ord($this->data[$i]), 8);
}
}
}
}