summaryrefslogtreecommitdiff
path: root/vendor/aferrandini/phpqrcode/lib/PHPQRCode/QRrsblock.php
blob: c1d01f22ef80d7268888956a814ed20810f7e6fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
 * QRrsblock.php
 *
 * Created by arielferrandini
 */

namespace PHPQRCode;

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;
    }
};