PluginProbe ʕ •ᴥ•ʔ
WP 2FA – Two-factor authentication for WordPress / 4.0.0
WP 2FA – Two-factor authentication for WordPress v4.0.0
4.0.0 1.7.1 2.0.0 2.0.1 2.1.0 2.2.0 2.2.1 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.7.0 2.8.0 2.9.0 2.9.1 2.9.2 2.9.3 3.0.0 3.0.1 3.1.0 3.1.1 3.1.1.2 trunk 1.2.0 1.3.0 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.7.0
wp-2fa / includes / classes / bacon / bacon-qr-code / src / Encoder / BlockPair.php
wp-2fa / includes / classes / bacon / bacon-qr-code / src / Encoder Last commit date
BlockPair.php 1 week ago ByteMatrix.php 1 week ago Encoder.php 1 week ago MaskUtil.php 1 week ago MatrixUtil.php 1 week ago QrCode.php 1 week ago index.php 1 week ago
BlockPair.php
54 lines
1 <?php
2
3 declare (strict_types=1);
4 namespace WP2FA_Vendor\BaconQrCode\Encoder;
5
6 use SplFixedArray;
7 /**
8 * Block pair.
9 */
10 final class BlockPair
11 {
12 /**
13 * Data bytes in the block.
14 *
15 * @var SplFixedArray<int>
16 */
17 private $dataBytes;
18 /**
19 * Error correction bytes in the block.
20 *
21 * @var SplFixedArray<int>
22 */
23 private $errorCorrectionBytes;
24 /**
25 * Creates a new block pair.
26 *
27 * @param SplFixedArray<int> $data
28 * @param SplFixedArray<int> $errorCorrection
29 */
30 public function __construct(SplFixedArray $data, SplFixedArray $errorCorrection)
31 {
32 $this->dataBytes = $data;
33 $this->errorCorrectionBytes = $errorCorrection;
34 }
35 /**
36 * Gets the data bytes.
37 *
38 * @return SplFixedArray<int>
39 */
40 public function getDataBytes() : SplFixedArray
41 {
42 return $this->dataBytes;
43 }
44 /**
45 * Gets the error correction bytes.
46 *
47 * @return SplFixedArray<int>
48 */
49 public function getErrorCorrectionBytes() : SplFixedArray
50 {
51 return $this->errorCorrectionBytes;
52 }
53 }
54