QRrsblock.php 508 字节
<?php
/**
 * Class QRrsblock
 * @author Tinymeng <666@majiameng.com>
 * @date: 2019/9/26 18:21
 */
namespace tinymeng\code\Gateways\qrcode;
class QRrsblock
{
    public $dataLength;
    public $data = array();
    public $eccLength;
    public $ecc = array();

    public function __construct($dl, $data, $el, &$ecc, QRrsItem $rs)
    {
        $rs->encode_rs_char($data, $ecc);

        $this->dataLength = $dl;
        $this->data = $data;
        $this->eccLength = $el;
        $this->ecc = $ecc;
    }
}