Total Complexity | 3 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | final class FormatInformation{ |
||
22 | |||
23 | public const MASK_QR = 0x5412; |
||
24 | |||
25 | /** |
||
26 | * See ISO 18004:2006, Annex C, Table C.1 |
||
27 | * |
||
28 | * [data bits, sequence after masking] |
||
29 | */ |
||
30 | public const DECODE_LOOKUP = [ |
||
31 | [0x00, 0x5412], |
||
32 | [0x01, 0x5125], |
||
33 | [0x02, 0x5E7C], |
||
34 | [0x03, 0x5B4B], |
||
35 | [0x04, 0x45F9], |
||
36 | [0x05, 0x40CE], |
||
37 | [0x06, 0x4F97], |
||
38 | [0x07, 0x4AA0], |
||
39 | [0x08, 0x77C4], |
||
40 | [0x09, 0x72F3], |
||
41 | [0x0A, 0x7DAA], |
||
42 | [0x0B, 0x789D], |
||
43 | [0x0C, 0x662F], |
||
44 | [0x0D, 0x6318], |
||
45 | [0x0E, 0x6C41], |
||
46 | [0x0F, 0x6976], |
||
47 | [0x10, 0x1689], |
||
48 | [0x11, 0x13BE], |
||
49 | [0x12, 0x1CE7], |
||
50 | [0x13, 0x19D0], |
||
51 | [0x14, 0x0762], |
||
52 | [0x15, 0x0255], |
||
53 | [0x16, 0x0D0C], |
||
54 | [0x17, 0x083B], |
||
55 | [0x18, 0x355F], |
||
56 | [0x19, 0x3068], |
||
57 | [0x1A, 0x3F31], |
||
58 | [0x1B, 0x3A06], |
||
59 | [0x1C, 0x24B4], |
||
60 | [0x1D, 0x2183], |
||
61 | [0x1E, 0x2EDA], |
||
62 | [0x1F, 0x2BED], |
||
63 | ]; |
||
64 | |||
65 | private int $errorCorrectionLevel; |
||
66 | private int $dataMask; |
||
67 | |||
68 | public function __construct(int $formatInfo){ |
||
71 | } |
||
72 | |||
73 | public function getErrorCorrectionLevel():EccLevel{ |
||
75 | } |
||
76 | |||
77 | public function getDataMask():MaskPattern{ |
||
83 |