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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
<?php /** * BaconQrCode * * @link http://github.com/Bacon/BaconQrCode For the canonical source repository * @copyright 2013 Ben 'DASPRiD' Scholzen * @license http://opensource.org/licenses/BSD-2-Clause Simplified BSD License */
namespace BaconQrCode\Encoder;
use SplFixedArray;
/** * Block pair. */ class BlockPair { /** * Data bytes in the block. * * @var SplFixedArray */ protected $dataBytes;
/** * Error correction bytes in the block. * * @var SplFixedArray */ protected $errorCorrectionBytes;
/** * Creates a new block pair. * * @param SplFixedArray $data * @param SplFixedArray $errorCorrection */ public function __construct(SplFixedArray $data, SplFixedArray $errorCorrection) { $this->dataBytes = $data; $this->errorCorrectionBytes = $errorCorrection; }
/** * Gets the data bytes. * * @return SplFixedArray */ public function getDataBytes() { return $this->dataBytes; }
/** * Gets the error correction bytes. * * @return SplFixedArray */ public function getErrorCorrectionBytes() { return $this->errorCorrectionBytes; } }
|