Skip to content

Commit 44d277d

Browse files
committed
🚿 order values
1 parent 9234642 commit 44d277d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Decoder/Decoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,14 @@ private function decodeBitStream(BitBuffer $bitBuffer):DecoderResult{
160160
}
161161

162162
return new DecoderResult([
163-
'rawBytes' => $this->bitBuffer,
164163
'data' => $result,
165-
'version' => $this->version,
166164
'eccLevel' => $this->eccLevel,
167165
'finderPatterns' => $this->detector->getFinderPatterns(),
168166
'maskPattern' => $this->maskPattern,
167+
'rawBytes' => $this->bitBuffer,
169168
'structuredAppendParity' => $parityData,
170169
'structuredAppendSequence' => $symbolSequence,
170+
'version' => $this->version,
171171
]);
172172
}
173173

src/Decoder/DecoderResult.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@
2121
* applies to 2D barcode formats. For now, it contains the raw bytes obtained
2222
* as well as a String interpretation of those bytes, if applicable.
2323
*
24-
* @property \chillerlan\QRCode\Common\BitBuffer $rawBytes
2524
* @property string $data
26-
* @property \chillerlan\QRCode\Common\Version $version
2725
* @property \chillerlan\QRCode\Common\EccLevel $eccLevel
26+
* @property \chillerlan\QRCode\Detector\FinderPattern[] $finderPatterns
2827
* @property \chillerlan\QRCode\Common\MaskPattern $maskPattern
28+
* @property \chillerlan\QRCode\Common\BitBuffer $rawBytes
2929
* @property int $structuredAppendParity
3030
* @property int $structuredAppendSequence
31-
* @property \chillerlan\QRCode\Detector\FinderPattern[] $finderPatterns
31+
* @property \chillerlan\QRCode\Common\Version $version
3232
*/
3333
final class DecoderResult{
3434

35-
private BitBuffer $rawBytes;
36-
private Version $version;
35+
private string $data = '';
3736
private EccLevel $eccLevel;
37+
/** @var \chillerlan\QRCode\Detector\FinderPattern[] */
38+
private array $finderPatterns = [];
3839
private MaskPattern $maskPattern;
39-
private string $data = '';
40+
private BitBuffer $rawBytes;
4041
private int $structuredAppendParity = -1;
4142
private int $structuredAppendSequence = -1;
42-
/** @var \chillerlan\QRCode\Detector\FinderPattern[] */
43-
private array $finderPatterns = [];
43+
private Version $version;
4444

4545
/**
4646
* DecoderResult constructor.

0 commit comments

Comments
 (0)