chillerlan-QRCode-Common-Version.html 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. </ul>
  44. </nav>
  45. </header>
  46. <main class="phpdocumentor">
  47. <div class="phpdocumentor-section">
  48. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  49. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  50. Menu
  51. </label>
  52. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  53. <section class="phpdocumentor-sidebar__category">
  54. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  55. <h4 class="phpdocumentor-sidebar__root-namespace">
  56. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  57. </h4>
  58. <ul class="phpdocumentor-list">
  59. <li>
  60. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  61. </li>
  62. <li>
  63. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  64. </li>
  65. </ul>
  66. </section>
  67. <section class="phpdocumentor-sidebar__category">
  68. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  69. <h4 class="phpdocumentor-sidebar__root-namespace">
  70. <a href="packages/Application.html" class="">Application</a>
  71. </h4>
  72. </section>
  73. <section class="phpdocumentor-sidebar__category">
  74. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  75. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  76. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  78. </section>
  79. <section class="phpdocumentor-sidebar__category">
  80. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  81. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  82. </section>
  83. </aside>
  84. <div class="phpdocumentor-column -eight phpdocumentor-content">
  85. <ul class="phpdocumentor-breadcrumbs">
  86. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  87. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  88. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-common.html">Common</a></li>
  89. </ul>
  90. <article class="phpdocumentor-element -class">
  91. <h2 class="phpdocumentor-content__title">
  92. Version
  93. <div class="phpdocumentor-element__package">
  94. in package
  95. <ul class="phpdocumentor-breadcrumbs">
  96. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  97. </ul>
  98. </div>
  99. </h2>
  100. <aside class="phpdocumentor-element-found-in">
  101. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  102. :
  103. <span class="phpdocumentor-element-found-in__line">18</span>
  104. </aside>
  105. <h3 id="toc">
  106. Table of Contents
  107. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  108. </h3>
  109. <dl class="phpdocumentor-table-of-contents">
  110. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  111. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_ALIGNMENT_PATTERN">ALIGNMENT_PATTERN</a>
  112. <span>
  113. &nbsp;= [1 =&gt; [], 2 =&gt; [6, 18], 3 =&gt; [6, 22], 4 =&gt; [6, 26], 5 =&gt; [6, 30], 6 =&gt; [6, 34], 7 =&gt; [6, 22, 38], 8 =&gt; [6, 24, 42], 9 =&gt; [6, 26, 46], 10 =&gt; [6, 28, 50], 11 =&gt; [6, 30, 54], 12 =&gt; [6, 32, 58], 13 =&gt; [6, 34, 62], 14 =&gt; [6, 26, 46, 66], 15 =&gt; [6, 26, 48, 70], 16 =&gt; [6, 26, 50, 74], 17 =&gt; [6, 30, 54, 78], 18 =&gt; [6, 30, 56, 82], 19 =&gt; [6, 30, 58, 86], 20 =&gt; [6, 34, 62, 90], 21 =&gt; [6, 28, 50, 72, 94], 22 =&gt; [6, 26, 50, 74, 98], 23 =&gt; [6, 30, 54, 78, 102], 24 =&gt; [6, 28, 54, 80, 106], 25 =&gt; [6, 32, 58, 84, 110], 26 =&gt; [6, 30, 58, 86, 114], 27 =&gt; [6, 34, 62, 90, 118], 28 =&gt; [6, 26, 50, 74, 98, 122], 29 =&gt; [6, 30, 54, 78, 102, 126], 30 =&gt; [6, 26, 52, 78, 104, 130], 31 =&gt; [6, 30, 56, 82, 108, 134], 32 =&gt; [6, 34, 60, 86, 112, 138], 33 =&gt; [6, 30, 58, 86, 114, 142], 34 =&gt; [6, 34, 62, 90, 118, 146], 35 =&gt; [6, 30, 54, 78, 102, 126, 150], 36 =&gt; [6, 24, 50, 76, 102, 128, 154], 37 =&gt; [6, 28, 54, 80, 106, 132, 158], 38 =&gt; [6, 32, 58, 84, 110, 136, 162], 39 =&gt; [6, 26, 54, 82, 110, 138, 166], 40 =&gt; [6, 30, 58, 86, 114, 142, 170]] </span>
  114. </dt>
  115. <dd>ISO/IEC 18004:2000 Annex E, Table E.1 - Row/column coordinates of center module of Alignment Patterns</dd>
  116. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  117. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_MAX_LENGTH">MAX_LENGTH</a>
  118. <span>
  119. &nbsp;= [
  120. // v =&gt; [NUMERIC =&gt; [L, M, Q, H ], ALPHANUM =&gt; [L, M, Q, H], BINARY =&gt; [L, M, Q, H ], KANJI =&gt; [L, M, Q, H ]]
  121. 1 =&gt; [[41, 34, 27, 17], [25, 20, 16, 10], [17, 14, 11, 7], [10, 8, 7, 4]],
  122. 2 =&gt; [[77, 63, 48, 34], [47, 38, 29, 20], [32, 26, 20, 14], [20, 16, 12, 8]],
  123. 3 =&gt; [[127, 101, 77, 58], [77, 61, 47, 35], [53, 42, 32, 24], [32, 26, 20, 15]],
  124. 4 =&gt; [[187, 149, 111, 82], [114, 90, 67, 50], [78, 62, 46, 34], [48, 38, 28, 21]],
  125. 5 =&gt; [[255, 202, 144, 106], [154, 122, 87, 64], [106, 84, 60, 44], [65, 52, 37, 27]],
  126. 6 =&gt; [[322, 255, 178, 139], [195, 154, 108, 84], [134, 106, 74, 58], [82, 65, 45, 36]],
  127. 7 =&gt; [[370, 293, 207, 154], [224, 178, 125, 93], [154, 122, 86, 64], [95, 75, 53, 39]],
  128. 8 =&gt; [[461, 365, 259, 202], [279, 221, 157, 122], [192, 152, 108, 84], [118, 93, 66, 52]],
  129. 9 =&gt; [[552, 432, 312, 235], [335, 262, 189, 143], [230, 180, 130, 98], [141, 111, 80, 60]],
  130. 10 =&gt; [[652, 513, 364, 288], [395, 311, 221, 174], [271, 213, 151, 119], [167, 131, 93, 74]],
  131. 11 =&gt; [[772, 604, 427, 331], [468, 366, 259, 200], [321, 251, 177, 137], [198, 155, 109, 85]],
  132. 12 =&gt; [[883, 691, 489, 374], [535, 419, 296, 227], [367, 287, 203, 155], [226, 177, 125, 96]],
  133. 13 =&gt; [[1022, 796, 580, 427], [619, 483, 352, 259], [425, 331, 241, 177], [262, 204, 149, 109]],
  134. 14 =&gt; [[1101, 871, 621, 468], [667, 528, 376, 283], [458, 362, 258, 194], [282, 223, 159, 120]],
  135. 15 =&gt; [[1250, 991, 703, 530], [758, 600, 426, 321], [520, 412, 292, 220], [320, 254, 180, 136]],
  136. 16 =&gt; [[1408, 1082, 775, 602], [854, 656, 470, 365], [586, 450, 322, 250], [361, 277, 198, 154]],
  137. 17 =&gt; [[1548, 1212, 876, 674], [938, 734, 531, 408], [644, 504, 364, 280], [397, 310, 224, 173]],
  138. 18 =&gt; [[1725, 1346, 948, 746], [1046, 816, 574, 452], [718, 560, 394, 310], [442, 345, 243, 191]],
  139. 19 =&gt; [[1903, 1500, 1063, 813], [1153, 909, 644, 493], [792, 624, 442, 338], [488, 384, 272, 208]],
  140. 20 =&gt; [[2061, 1600, 1159, 919], [1249, 970, 702, 557], [858, 666, 482, 382], [528, 410, 297, 235]],
  141. 21 =&gt; [[2232, 1708, 1224, 969], [1352, 1035, 742, 587], [929, 711, 509, 403], [572, 438, 314, 248]],
  142. 22 =&gt; [[2409, 1872, 1358, 1056], [1460, 1134, 823, 640], [1003, 779, 565, 439], [618, 480, 348, 270]],
  143. 23 =&gt; [[2620, 2059, 1468, 1108], [1588, 1248, 890, 672], [1091, 857, 611, 461], [672, 528, 376, 284]],
  144. 24 =&gt; [[2812, 2188, 1588, 1228], [1704, 1326, 963, 744], [1171, 911, 661, 511], [721, 561, 407, 315]],
  145. 25 =&gt; [[3057, 2395, 1718, 1286], [1853, 1451, 1041, 779], [1273, 997, 715, 535], [784, 614, 440, 330]],
  146. 26 =&gt; [[3283, 2544, 1804, 1425], [1990, 1542, 1094, 864], [1367, 1059, 751, 593], [842, 652, 462, 365]],
  147. 27 =&gt; [[3517, 2701, 1933, 1501], [2132, 1637, 1172, 910], [1465, 1125, 805, 625], [902, 692, 496, 385]],
  148. 28 =&gt; [[3669, 2857, 2085, 1581], [2223, 1732, 1263, 958], [1528, 1190, 868, 658], [940, 732, 534, 405]],
  149. 29 =&gt; [[3909, 3035, 2181, 1677], [2369, 1839, 1322, 1016], [1628, 1264, 908, 698], [1002, 778, 559, 430]],
  150. 30 =&gt; [[4158, 3289, 2358, 1782], [2520, 1994, 1429, 1080], [1732, 1370, 982, 742], [1066, 843, 604, 457]],
  151. 31 =&gt; [[4417, 3486, 2473, 1897], [2677, 2113, 1499, 1150], [1840, 1452, 1030, 790], [1132, 894, 634, 486]],
  152. 32 =&gt; [[4686, 3693, 2670, 2022], [2840, 2238, 1618, 1226], [1952, 1538, 1112, 842], [1201, 947, 684, 518]],
  153. 33 =&gt; [[4965, 3909, 2805, 2157], [3009, 2369, 1700, 1307], [2068, 1628, 1168, 898], [1273, 1002, 719, 553]],
  154. 34 =&gt; [[5253, 4134, 2949, 2301], [3183, 2506, 1787, 1394], [2188, 1722, 1228, 958], [1347, 1060, 756, 590]],
  155. 35 =&gt; [[5529, 4343, 3081, 2361], [3351, 2632, 1867, 1431], [2303, 1809, 1283, 983], [1417, 1113, 790, 605]],
  156. 36 =&gt; [[5836, 4588, 3244, 2524], [3537, 2780, 1966, 1530], [2431, 1911, 1351, 1051], [1496, 1176, 832, 647]],
  157. 37 =&gt; [[6153, 4775, 3417, 2625], [3729, 2894, 2071, 1591], [2563, 1989, 1423, 1093], [1577, 1224, 876, 673]],
  158. 38 =&gt; [[6479, 5039, 3599, 2735], [3927, 3054, 2181, 1658], [2699, 2099, 1499, 1139], [1661, 1292, 923, 701]],
  159. 39 =&gt; [[6743, 5313, 3791, 2927], [4087, 3220, 2298, 1774], [2809, 2213, 1579, 1219], [1729, 1362, 972, 750]],
  160. 40 =&gt; [[7089, 5596, 3993, 3057], [4296, 3391, 2420, 1852], [2953, 2331, 1663, 1273], [1817, 1435, 1024, 784]],
  161. ] </span>
  162. </dt>
  163. <dd>ISO/IEC 18004:2000 Tables 7-11 - Number of symbol characters and input data capacity for versions 1 to 40</dd>
  164. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  165. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_RSBLOCKS">RSBLOCKS</a>
  166. <span>
  167. &nbsp;= [1 =&gt; [[7, [[1, 19], [0, 0]]], [10, [[1, 16], [0, 0]]], [13, [[1, 13], [0, 0]]], [17, [[1, 9], [0, 0]]]], 2 =&gt; [[10, [[1, 34], [0, 0]]], [16, [[1, 28], [0, 0]]], [22, [[1, 22], [0, 0]]], [28, [[1, 16], [0, 0]]]], 3 =&gt; [[15, [[1, 55], [0, 0]]], [26, [[1, 44], [0, 0]]], [18, [[2, 17], [0, 0]]], [22, [[2, 13], [0, 0]]]], 4 =&gt; [[20, [[1, 80], [0, 0]]], [18, [[2, 32], [0, 0]]], [26, [[2, 24], [0, 0]]], [16, [[4, 9], [0, 0]]]], 5 =&gt; [[26, [[1, 108], [0, 0]]], [24, [[2, 43], [0, 0]]], [18, [[2, 15], [2, 16]]], [22, [[2, 11], [2, 12]]]], 6 =&gt; [[18, [[2, 68], [0, 0]]], [16, [[4, 27], [0, 0]]], [24, [[4, 19], [0, 0]]], [28, [[4, 15], [0, 0]]]], 7 =&gt; [[20, [[2, 78], [0, 0]]], [18, [[4, 31], [0, 0]]], [18, [[2, 14], [4, 15]]], [26, [[4, 13], [1, 14]]]], 8 =&gt; [[24, [[2, 97], [0, 0]]], [22, [[2, 38], [2, 39]]], [22, [[4, 18], [2, 19]]], [26, [[4, 14], [2, 15]]]], 9 =&gt; [[30, [[2, 116], [0, 0]]], [22, [[3, 36], [2, 37]]], [20, [[4, 16], [4, 17]]], [24, [[4, 12], [4, 13]]]], 10 =&gt; [[18, [[2, 68], [2, 69]]], [26, [[4, 43], [1, 44]]], [24, [[6, 19], [2, 20]]], [28, [[6, 15], [2, 16]]]], 11 =&gt; [[20, [[4, 81], [0, 0]]], [30, [[1, 50], [4, 51]]], [28, [[4, 22], [4, 23]]], [24, [[3, 12], [8, 13]]]], 12 =&gt; [[24, [[2, 92], [2, 93]]], [22, [[6, 36], [2, 37]]], [26, [[4, 20], [6, 21]]], [28, [[7, 14], [4, 15]]]], 13 =&gt; [[26, [[4, 107], [0, 0]]], [22, [[8, 37], [1, 38]]], [24, [[8, 20], [4, 21]]], [22, [[12, 11], [4, 12]]]], 14 =&gt; [[30, [[3, 115], [1, 116]]], [24, [[4, 40], [5, 41]]], [20, [[11, 16], [5, 17]]], [24, [[11, 12], [5, 13]]]], 15 =&gt; [[22, [[5, 87], [1, 88]]], [24, [[5, 41], [5, 42]]], [30, [[5, 24], [7, 25]]], [24, [[11, 12], [7, 13]]]], 16 =&gt; [[24, [[5, 98], [1, 99]]], [28, [[7, 45], [3, 46]]], [24, [[15, 19], [2, 20]]], [30, [[3, 15], [13, 16]]]], 17 =&gt; [[28, [[1, 107], [5, 108]]], [28, [[10, 46], [1, 47]]], [28, [[1, 22], [15, 23]]], [28, [[2, 14], [17, 15]]]], 18 =&gt; [[30, [[5, 120], [1, 121]]], [26, [[9, 43], [4, 44]]], [28, [[17, 22], [1, 23]]], [28, [[2, 14], [19, 15]]]], 19 =&gt; [[28, [[3, 113], [4, 114]]], [26, [[3, 44], [11, 45]]], [26, [[17, 21], [4, 22]]], [26, [[9, 13], [16, 14]]]], 20 =&gt; [[28, [[3, 107], [5, 108]]], [26, [[3, 41], [13, 42]]], [30, [[15, 24], [5, 25]]], [28, [[15, 15], [10, 16]]]], 21 =&gt; [[28, [[4, 116], [4, 117]]], [26, [[17, 42], [0, 0]]], [28, [[17, 22], [6, 23]]], [30, [[19, 16], [6, 17]]]], 22 =&gt; [[28, [[2, 111], [7, 112]]], [28, [[17, 46], [0, 0]]], [30, [[7, 24], [16, 25]]], [24, [[34, 13], [0, 0]]]], 23 =&gt; [[30, [[4, 121], [5, 122]]], [28, [[4, 47], [14, 48]]], [30, [[11, 24], [14, 25]]], [30, [[16, 15], [14, 16]]]], 24 =&gt; [[30, [[6, 117], [4, 118]]], [28, [[6, 45], [14, 46]]], [30, [[11, 24], [16, 25]]], [30, [[30, 16], [2, 17]]]], 25 =&gt; [[26, [[8, 106], [4, 107]]], [28, [[8, 47], [13, 48]]], [30, [[7, 24], [22, 25]]], [30, [[22, 15], [13, 16]]]], 26 =&gt; [[28, [[10, 114], [2, 115]]], [28, [[19, 46], [4, 47]]], [28, [[28, 22], [6, 23]]], [30, [[33, 16], [4, 17]]]], 27 =&gt; [[30, [[8, 122], [4, 123]]], [28, [[22, 45], [3, 46]]], [30, [[8, 23], [26, 24]]], [30, [[12, 15], [28, 16]]]], 28 =&gt; [[30, [[3, 117], [10, 118]]], [28, [[3, 45], [23, 46]]], [30, [[4, 24], [31, 25]]], [30, [[11, 15], [31, 16]]]], 29 =&gt; [[30, [[7, 116], [7, 117]]], [28, [[21, 45], [7, 46]]], [30, [[1, 23], [37, 24]]], [30, [[19, 15], [26, 16]]]], 30 =&gt; [[30, [[5, 115], [10, 116]]], [28, [[19, 47], [10, 48]]], [30, [[15, 24], [25, 25]]], [30, [[23, 15], [25, 16]]]], 31 =&gt; [[30, [[13, 115], [3, 116]]], [28, [[2, 46], [29, 47]]], [30, [[42, 24], [1, 25]]], [30, [[23, 15], [28, 16]]]], 32 =&gt; [[30, [[17, 115], [0, 0]]], [28, [[10, 46], [23, 47]]], [30, [[10, 24], [35, 25]]], [30, [[19, 15], [35, 16]]]], 33 =&gt; [[30, [[17, 115], [1, 116]]], [28, [[14, 46], [21, 47]]], [30, [[29, 24], [19, 25]]], [30, [[11, 15], [46, 16]]]], 34 =&gt; [[30, [[13, 115], [6, 116]]], [28, [[14, 46], [23, 47]]], [30, [[44, 24], [7, 25]]], [30, [[59, 16], [1, 17]]]], 35 =&gt; [[30, [[12, 121], [7, 122]]], [28, [[12, 47], [26, 48]]], [30, [[39, 24], [14, 25]]], [30, [[22, 15], [41, 16]]]], 36 =&gt; [[30, [[6, 121], [14, 122]]], [28, [[6, 47], [34, 48]]], [30, [[46, 24], [10, 25]]], [30, [[2, 15], [64, 16]]]], 37 =&gt; [[30, [[17, 122], [4, 123]]], [28, [[29, 46], [14, 47]]], [30, [[49, 24], [10, 25]]], [30, [[24, 15], [46, 16]]]], 38 =&gt; [[30, [[4, 122], [18, 123]]], [28, [[13, 46], [32, 47]]], [30, [[48, 24], [14, 25]]], [30, [[42, 15], [32, 16]]]], 39 =&gt; [[30, [[20, 117], [4, 118]]], [28, [[40, 47], [7, 48]]], [30, [[43, 24], [22, 25]]], [30, [[10, 15], [67, 16]]]], 40 =&gt; [[30, [[19, 118], [6, 119]]], [28, [[18, 47], [31, 48]]], [30, [[34, 24], [34, 25]]], [30, [[20, 15], [61, 16]]]]] </span>
  168. </dt>
  169. <dd>ISO/IEC 18004:2000 Tables 13-22</dd>
  170. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  171. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_TOTAL_CODEWORDS">TOTAL_CODEWORDS</a>
  172. <span>
  173. &nbsp;= [1 =&gt; 26, 2 =&gt; 44, 3 =&gt; 70, 4 =&gt; 100, 5 =&gt; 134, 6 =&gt; 172, 7 =&gt; 196, 8 =&gt; 242, 9 =&gt; 292, 10 =&gt; 346, 11 =&gt; 404, 12 =&gt; 466, 13 =&gt; 532, 14 =&gt; 581, 15 =&gt; 655, 16 =&gt; 733, 17 =&gt; 815, 18 =&gt; 901, 19 =&gt; 991, 20 =&gt; 1085, 21 =&gt; 1156, 22 =&gt; 1258, 23 =&gt; 1364, 24 =&gt; 1474, 25 =&gt; 1588, 26 =&gt; 1706, 27 =&gt; 1828, 28 =&gt; 1921, 29 =&gt; 2051, 30 =&gt; 2185, 31 =&gt; 2323, 32 =&gt; 2465, 33 =&gt; 2611, 34 =&gt; 2761, 35 =&gt; 2876, 36 =&gt; 3034, 37 =&gt; 3196, 38 =&gt; 3362, 39 =&gt; 3532, 40 =&gt; 3706] </span>
  174. </dt>
  175. <dd></dd>
  176. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  177. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_VERSION_PATTERN">VERSION_PATTERN</a>
  178. <span>
  179. &nbsp;= [7 =&gt; 0b111110010010100, 8 =&gt; 0b1000010110111100, 9 =&gt; 0b1001101010011001, 10 =&gt; 0b1010010011010011, 11 =&gt; 0b1011101111110110, 12 =&gt; 0b1100011101100010, 13 =&gt; 0b1101100001000111, 14 =&gt; 0b1110011000001101, 15 =&gt; 0b1111100100101000, 16 =&gt; 0b10000101101111000, 17 =&gt; 0b10001010001011101, 18 =&gt; 0b10010101000010111, 19 =&gt; 0b10011010100110010, 20 =&gt; 0b10100100110100110, 21 =&gt; 0b10101011010000011, 22 =&gt; 0b10110100011001001, 23 =&gt; 0b10111011111101100, 24 =&gt; 0b11000111011000100, 25 =&gt; 0b11001000111100001, 26 =&gt; 0b11010111110101011, 27 =&gt; 0b11011000010001110, 28 =&gt; 0b11100110000011010, 29 =&gt; 0b11101001100111111, 30 =&gt; 0b11110110101110101, 31 =&gt; 0b11111001001010000, 32 =&gt; 0b100000100111010101, 33 =&gt; 0b100001011011110000, 34 =&gt; 0b100010100010111010, 35 =&gt; 0b100011011110011111, 36 =&gt; 0b100100101100001011, 37 =&gt; 0b100101010000101110, 38 =&gt; 0b100110101001100100, 39 =&gt; 0b100111010101000001, 40 =&gt; 0b101000110001101001] </span>
  180. </dt>
  181. <dd>ISO/IEC 18004:2000 Annex D, Table D.1 - Version information bit stream for each version</dd>
  182. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  183. <a href="classes/chillerlan-QRCode-Common-Version.html#property_version">$version</a>
  184. <span>
  185. &nbsp;: int </span>
  186. </dt>
  187. <dd>QR Code version number</dd>
  188. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  189. <a href="classes/chillerlan-QRCode-Common-Version.html#method___construct">__construct()</a>
  190. <span>
  191. &nbsp;: mixed </span>
  192. </dt>
  193. <dd>Version constructor.</dd>
  194. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  195. <a href="classes/chillerlan-QRCode-Common-Version.html#method___toString">__toString()</a>
  196. <span>
  197. &nbsp;: string </span>
  198. </dt>
  199. <dd>returns the current version number as string</dd>
  200. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  201. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getAlignmentPattern">getAlignmentPattern()</a>
  202. <span>
  203. &nbsp;: array&lt;string|int, int&gt; </span>
  204. </dt>
  205. <dd>the alignment patterns for the current version</dd>
  206. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  207. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getDimension">getDimension()</a>
  208. <span>
  209. &nbsp;: int </span>
  210. </dt>
  211. <dd>the matrix size for the given version</dd>
  212. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  213. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getMaxLengthForMode">getMaxLengthForMode()</a>
  214. <span>
  215. &nbsp;: int|null </span>
  216. </dt>
  217. <dd>the maximum character count for the given $mode and $eccLevel</dd>
  218. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  219. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getRSBlocks">getRSBlocks()</a>
  220. <span>
  221. &nbsp;: array&lt;string|int, mixed&gt; </span>
  222. </dt>
  223. <dd>returns ECC block information for the given $version and $eccLevel</dd>
  224. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  225. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getTotalCodewords">getTotalCodewords()</a>
  226. <span>
  227. &nbsp;: int </span>
  228. </dt>
  229. <dd>returns the maximum codewords for the current version</dd>
  230. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  231. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getVersionNumber">getVersionNumber()</a>
  232. <span>
  233. &nbsp;: int </span>
  234. </dt>
  235. <dd>returns the current version number</dd>
  236. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  237. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getVersionPattern">getVersionPattern()</a>
  238. <span>
  239. &nbsp;: int|null </span>
  240. </dt>
  241. <dd>the version pattern for the given version</dd>
  242. </dl>
  243. <section class="phpdocumentor-constants">
  244. <h3 class="phpdocumentor-elements__header" id="constants">
  245. Constants
  246. <a href="classes/chillerlan-QRCode-Common-Version.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  247. </h3>
  248. <article class="phpdocumentor-element -constant -private ">
  249. <h4 class="phpdocumentor-element__name" id="constant_ALIGNMENT_PATTERN">
  250. ALIGNMENT_PATTERN
  251. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_ALIGNMENT_PATTERN" class="headerlink"><i class="fas fa-link"></i></a>
  252. </h4>
  253. <aside class="phpdocumentor-element-found-in">
  254. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  255. :
  256. <span class="phpdocumentor-element-found-in__line">27</span>
  257. </aside>
  258. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Annex E, Table E.1 - Row/column coordinates of center module of Alignment Patterns</p>
  259. <code class="phpdocumentor-signature phpdocumentor-code ">
  260. <span class="phpdocumentor-signature__visibility">private</span>
  261. <span class="phpdocumentor-signature__type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  262. <span class="phpdocumentor-signature__name">ALIGNMENT_PATTERN</span>
  263. = <span class="phpdocumentor-signature__default-value">[1 =&gt; [], 2 =&gt; [6, 18], 3 =&gt; [6, 22], 4 =&gt; [6, 26], 5 =&gt; [6, 30], 6 =&gt; [6, 34], 7 =&gt; [6, 22, 38], 8 =&gt; [6, 24, 42], 9 =&gt; [6, 26, 46], 10 =&gt; [6, 28, 50], 11 =&gt; [6, 30, 54], 12 =&gt; [6, 32, 58], 13 =&gt; [6, 34, 62], 14 =&gt; [6, 26, 46, 66], 15 =&gt; [6, 26, 48, 70], 16 =&gt; [6, 26, 50, 74], 17 =&gt; [6, 30, 54, 78], 18 =&gt; [6, 30, 56, 82], 19 =&gt; [6, 30, 58, 86], 20 =&gt; [6, 34, 62, 90], 21 =&gt; [6, 28, 50, 72, 94], 22 =&gt; [6, 26, 50, 74, 98], 23 =&gt; [6, 30, 54, 78, 102], 24 =&gt; [6, 28, 54, 80, 106], 25 =&gt; [6, 32, 58, 84, 110], 26 =&gt; [6, 30, 58, 86, 114], 27 =&gt; [6, 34, 62, 90, 118], 28 =&gt; [6, 26, 50, 74, 98, 122], 29 =&gt; [6, 30, 54, 78, 102, 126], 30 =&gt; [6, 26, 52, 78, 104, 130], 31 =&gt; [6, 30, 56, 82, 108, 134], 32 =&gt; [6, 34, 60, 86, 112, 138], 33 =&gt; [6, 30, 58, 86, 114, 142], 34 =&gt; [6, 34, 62, 90, 118, 146], 35 =&gt; [6, 30, 54, 78, 102, 126, 150], 36 =&gt; [6, 24, 50, 76, 102, 128, 154], 37 =&gt; [6, 28, 54, 80, 106, 132, 158], 38 =&gt; [6, 32, 58, 84, 110, 136, 162], 39 =&gt; [6, 26, 54, 82, 110, 138, 166], 40 =&gt; [6, 30, 58, 86, 114, 142, 170]]</span>
  264. </code>
  265. <section class="phpdocumentor-description"><p>version -&gt; pattern</p>
  266. </section>
  267. </article>
  268. <article class="phpdocumentor-element -constant -private ">
  269. <h4 class="phpdocumentor-element__name" id="constant_MAX_LENGTH">
  270. MAX_LENGTH
  271. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_MAX_LENGTH" class="headerlink"><i class="fas fa-link"></i></a>
  272. </h4>
  273. <aside class="phpdocumentor-element-found-in">
  274. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  275. :
  276. <span class="phpdocumentor-element-found-in__line">121</span>
  277. </aside>
  278. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Tables 7-11 - Number of symbol characters and input data capacity for versions 1 to 40</p>
  279. <code class="phpdocumentor-signature phpdocumentor-code ">
  280. <span class="phpdocumentor-signature__visibility">private</span>
  281. <span class="phpdocumentor-signature__type">int</span>
  282. <span class="phpdocumentor-signature__name">MAX_LENGTH</span>
  283. = <span class="phpdocumentor-signature__default-value">[
  284. // v =&gt; [NUMERIC =&gt; [L, M, Q, H ], ALPHANUM =&gt; [L, M, Q, H], BINARY =&gt; [L, M, Q, H ], KANJI =&gt; [L, M, Q, H ]]
  285. 1 =&gt; [[41, 34, 27, 17], [25, 20, 16, 10], [17, 14, 11, 7], [10, 8, 7, 4]],
  286. 2 =&gt; [[77, 63, 48, 34], [47, 38, 29, 20], [32, 26, 20, 14], [20, 16, 12, 8]],
  287. 3 =&gt; [[127, 101, 77, 58], [77, 61, 47, 35], [53, 42, 32, 24], [32, 26, 20, 15]],
  288. 4 =&gt; [[187, 149, 111, 82], [114, 90, 67, 50], [78, 62, 46, 34], [48, 38, 28, 21]],
  289. 5 =&gt; [[255, 202, 144, 106], [154, 122, 87, 64], [106, 84, 60, 44], [65, 52, 37, 27]],
  290. 6 =&gt; [[322, 255, 178, 139], [195, 154, 108, 84], [134, 106, 74, 58], [82, 65, 45, 36]],
  291. 7 =&gt; [[370, 293, 207, 154], [224, 178, 125, 93], [154, 122, 86, 64], [95, 75, 53, 39]],
  292. 8 =&gt; [[461, 365, 259, 202], [279, 221, 157, 122], [192, 152, 108, 84], [118, 93, 66, 52]],
  293. 9 =&gt; [[552, 432, 312, 235], [335, 262, 189, 143], [230, 180, 130, 98], [141, 111, 80, 60]],
  294. 10 =&gt; [[652, 513, 364, 288], [395, 311, 221, 174], [271, 213, 151, 119], [167, 131, 93, 74]],
  295. 11 =&gt; [[772, 604, 427, 331], [468, 366, 259, 200], [321, 251, 177, 137], [198, 155, 109, 85]],
  296. 12 =&gt; [[883, 691, 489, 374], [535, 419, 296, 227], [367, 287, 203, 155], [226, 177, 125, 96]],
  297. 13 =&gt; [[1022, 796, 580, 427], [619, 483, 352, 259], [425, 331, 241, 177], [262, 204, 149, 109]],
  298. 14 =&gt; [[1101, 871, 621, 468], [667, 528, 376, 283], [458, 362, 258, 194], [282, 223, 159, 120]],
  299. 15 =&gt; [[1250, 991, 703, 530], [758, 600, 426, 321], [520, 412, 292, 220], [320, 254, 180, 136]],
  300. 16 =&gt; [[1408, 1082, 775, 602], [854, 656, 470, 365], [586, 450, 322, 250], [361, 277, 198, 154]],
  301. 17 =&gt; [[1548, 1212, 876, 674], [938, 734, 531, 408], [644, 504, 364, 280], [397, 310, 224, 173]],
  302. 18 =&gt; [[1725, 1346, 948, 746], [1046, 816, 574, 452], [718, 560, 394, 310], [442, 345, 243, 191]],
  303. 19 =&gt; [[1903, 1500, 1063, 813], [1153, 909, 644, 493], [792, 624, 442, 338], [488, 384, 272, 208]],
  304. 20 =&gt; [[2061, 1600, 1159, 919], [1249, 970, 702, 557], [858, 666, 482, 382], [528, 410, 297, 235]],
  305. 21 =&gt; [[2232, 1708, 1224, 969], [1352, 1035, 742, 587], [929, 711, 509, 403], [572, 438, 314, 248]],
  306. 22 =&gt; [[2409, 1872, 1358, 1056], [1460, 1134, 823, 640], [1003, 779, 565, 439], [618, 480, 348, 270]],
  307. 23 =&gt; [[2620, 2059, 1468, 1108], [1588, 1248, 890, 672], [1091, 857, 611, 461], [672, 528, 376, 284]],
  308. 24 =&gt; [[2812, 2188, 1588, 1228], [1704, 1326, 963, 744], [1171, 911, 661, 511], [721, 561, 407, 315]],
  309. 25 =&gt; [[3057, 2395, 1718, 1286], [1853, 1451, 1041, 779], [1273, 997, 715, 535], [784, 614, 440, 330]],
  310. 26 =&gt; [[3283, 2544, 1804, 1425], [1990, 1542, 1094, 864], [1367, 1059, 751, 593], [842, 652, 462, 365]],
  311. 27 =&gt; [[3517, 2701, 1933, 1501], [2132, 1637, 1172, 910], [1465, 1125, 805, 625], [902, 692, 496, 385]],
  312. 28 =&gt; [[3669, 2857, 2085, 1581], [2223, 1732, 1263, 958], [1528, 1190, 868, 658], [940, 732, 534, 405]],
  313. 29 =&gt; [[3909, 3035, 2181, 1677], [2369, 1839, 1322, 1016], [1628, 1264, 908, 698], [1002, 778, 559, 430]],
  314. 30 =&gt; [[4158, 3289, 2358, 1782], [2520, 1994, 1429, 1080], [1732, 1370, 982, 742], [1066, 843, 604, 457]],
  315. 31 =&gt; [[4417, 3486, 2473, 1897], [2677, 2113, 1499, 1150], [1840, 1452, 1030, 790], [1132, 894, 634, 486]],
  316. 32 =&gt; [[4686, 3693, 2670, 2022], [2840, 2238, 1618, 1226], [1952, 1538, 1112, 842], [1201, 947, 684, 518]],
  317. 33 =&gt; [[4965, 3909, 2805, 2157], [3009, 2369, 1700, 1307], [2068, 1628, 1168, 898], [1273, 1002, 719, 553]],
  318. 34 =&gt; [[5253, 4134, 2949, 2301], [3183, 2506, 1787, 1394], [2188, 1722, 1228, 958], [1347, 1060, 756, 590]],
  319. 35 =&gt; [[5529, 4343, 3081, 2361], [3351, 2632, 1867, 1431], [2303, 1809, 1283, 983], [1417, 1113, 790, 605]],
  320. 36 =&gt; [[5836, 4588, 3244, 2524], [3537, 2780, 1966, 1530], [2431, 1911, 1351, 1051], [1496, 1176, 832, 647]],
  321. 37 =&gt; [[6153, 4775, 3417, 2625], [3729, 2894, 2071, 1591], [2563, 1989, 1423, 1093], [1577, 1224, 876, 673]],
  322. 38 =&gt; [[6479, 5039, 3599, 2735], [3927, 3054, 2181, 1658], [2699, 2099, 1499, 1139], [1661, 1292, 923, 701]],
  323. 39 =&gt; [[6743, 5313, 3791, 2927], [4087, 3220, 2298, 1774], [2809, 2213, 1579, 1219], [1729, 1362, 972, 750]],
  324. 40 =&gt; [[7089, 5596, 3993, 3057], [4296, 3391, 2420, 1852], [2953, 2331, 1663, 1273], [1817, 1435, 1024, 784]],
  325. ]</span>
  326. </code>
  327. <section class="phpdocumentor-description"><p>[][][]</p>
  328. </section>
  329. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  330. Tags
  331. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  332. </h5>
  333. <dl class="phpdocumentor-tag-list">
  334. <dt class="phpdocumentor-tag-list__entry">
  335. <span class="phpdocumentor-tag__name">see</span>
  336. </dt>
  337. <dd class="phpdocumentor-tag-list__definition">
  338. <span class="phpdocumentor-tag-link"><a href="http://www.qrcode.com/en/about/version.html"><abbr title="http://www.qrcode.com/en/about/version.html">http://www.qrcode.com/en/about/version.html</abbr></a></span>
  339. </dd>
  340. </dl>
  341. </article>
  342. <article class="phpdocumentor-element -constant -private ">
  343. <h4 class="phpdocumentor-element__name" id="constant_RSBLOCKS">
  344. RSBLOCKS
  345. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_RSBLOCKS" class="headerlink"><i class="fas fa-link"></i></a>
  346. </h4>
  347. <aside class="phpdocumentor-element-found-in">
  348. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  349. :
  350. <span class="phpdocumentor-element-found-in__line">170</span>
  351. </aside>
  352. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Tables 13-22</p>
  353. <code class="phpdocumentor-signature phpdocumentor-code ">
  354. <span class="phpdocumentor-signature__visibility">private</span>
  355. <span class="phpdocumentor-signature__type">mixed</span>
  356. <span class="phpdocumentor-signature__name">RSBLOCKS</span>
  357. = <span class="phpdocumentor-signature__default-value">[1 =&gt; [[7, [[1, 19], [0, 0]]], [10, [[1, 16], [0, 0]]], [13, [[1, 13], [0, 0]]], [17, [[1, 9], [0, 0]]]], 2 =&gt; [[10, [[1, 34], [0, 0]]], [16, [[1, 28], [0, 0]]], [22, [[1, 22], [0, 0]]], [28, [[1, 16], [0, 0]]]], 3 =&gt; [[15, [[1, 55], [0, 0]]], [26, [[1, 44], [0, 0]]], [18, [[2, 17], [0, 0]]], [22, [[2, 13], [0, 0]]]], 4 =&gt; [[20, [[1, 80], [0, 0]]], [18, [[2, 32], [0, 0]]], [26, [[2, 24], [0, 0]]], [16, [[4, 9], [0, 0]]]], 5 =&gt; [[26, [[1, 108], [0, 0]]], [24, [[2, 43], [0, 0]]], [18, [[2, 15], [2, 16]]], [22, [[2, 11], [2, 12]]]], 6 =&gt; [[18, [[2, 68], [0, 0]]], [16, [[4, 27], [0, 0]]], [24, [[4, 19], [0, 0]]], [28, [[4, 15], [0, 0]]]], 7 =&gt; [[20, [[2, 78], [0, 0]]], [18, [[4, 31], [0, 0]]], [18, [[2, 14], [4, 15]]], [26, [[4, 13], [1, 14]]]], 8 =&gt; [[24, [[2, 97], [0, 0]]], [22, [[2, 38], [2, 39]]], [22, [[4, 18], [2, 19]]], [26, [[4, 14], [2, 15]]]], 9 =&gt; [[30, [[2, 116], [0, 0]]], [22, [[3, 36], [2, 37]]], [20, [[4, 16], [4, 17]]], [24, [[4, 12], [4, 13]]]], 10 =&gt; [[18, [[2, 68], [2, 69]]], [26, [[4, 43], [1, 44]]], [24, [[6, 19], [2, 20]]], [28, [[6, 15], [2, 16]]]], 11 =&gt; [[20, [[4, 81], [0, 0]]], [30, [[1, 50], [4, 51]]], [28, [[4, 22], [4, 23]]], [24, [[3, 12], [8, 13]]]], 12 =&gt; [[24, [[2, 92], [2, 93]]], [22, [[6, 36], [2, 37]]], [26, [[4, 20], [6, 21]]], [28, [[7, 14], [4, 15]]]], 13 =&gt; [[26, [[4, 107], [0, 0]]], [22, [[8, 37], [1, 38]]], [24, [[8, 20], [4, 21]]], [22, [[12, 11], [4, 12]]]], 14 =&gt; [[30, [[3, 115], [1, 116]]], [24, [[4, 40], [5, 41]]], [20, [[11, 16], [5, 17]]], [24, [[11, 12], [5, 13]]]], 15 =&gt; [[22, [[5, 87], [1, 88]]], [24, [[5, 41], [5, 42]]], [30, [[5, 24], [7, 25]]], [24, [[11, 12], [7, 13]]]], 16 =&gt; [[24, [[5, 98], [1, 99]]], [28, [[7, 45], [3, 46]]], [24, [[15, 19], [2, 20]]], [30, [[3, 15], [13, 16]]]], 17 =&gt; [[28, [[1, 107], [5, 108]]], [28, [[10, 46], [1, 47]]], [28, [[1, 22], [15, 23]]], [28, [[2, 14], [17, 15]]]], 18 =&gt; [[30, [[5, 120], [1, 121]]], [26, [[9, 43], [4, 44]]], [28, [[17, 22], [1, 23]]], [28, [[2, 14], [19, 15]]]], 19 =&gt; [[28, [[3, 113], [4, 114]]], [26, [[3, 44], [11, 45]]], [26, [[17, 21], [4, 22]]], [26, [[9, 13], [16, 14]]]], 20 =&gt; [[28, [[3, 107], [5, 108]]], [26, [[3, 41], [13, 42]]], [30, [[15, 24], [5, 25]]], [28, [[15, 15], [10, 16]]]], 21 =&gt; [[28, [[4, 116], [4, 117]]], [26, [[17, 42], [0, 0]]], [28, [[17, 22], [6, 23]]], [30, [[19, 16], [6, 17]]]], 22 =&gt; [[28, [[2, 111], [7, 112]]], [28, [[17, 46], [0, 0]]], [30, [[7, 24], [16, 25]]], [24, [[34, 13], [0, 0]]]], 23 =&gt; [[30, [[4, 121], [5, 122]]], [28, [[4, 47], [14, 48]]], [30, [[11, 24], [14, 25]]], [30, [[16, 15], [14, 16]]]], 24 =&gt; [[30, [[6, 117], [4, 118]]], [28, [[6, 45], [14, 46]]], [30, [[11, 24], [16, 25]]], [30, [[30, 16], [2, 17]]]], 25 =&gt; [[26, [[8, 106], [4, 107]]], [28, [[8, 47], [13, 48]]], [30, [[7, 24], [22, 25]]], [30, [[22, 15], [13, 16]]]], 26 =&gt; [[28, [[10, 114], [2, 115]]], [28, [[19, 46], [4, 47]]], [28, [[28, 22], [6, 23]]], [30, [[33, 16], [4, 17]]]], 27 =&gt; [[30, [[8, 122], [4, 123]]], [28, [[22, 45], [3, 46]]], [30, [[8, 23], [26, 24]]], [30, [[12, 15], [28, 16]]]], 28 =&gt; [[30, [[3, 117], [10, 118]]], [28, [[3, 45], [23, 46]]], [30, [[4, 24], [31, 25]]], [30, [[11, 15], [31, 16]]]], 29 =&gt; [[30, [[7, 116], [7, 117]]], [28, [[21, 45], [7, 46]]], [30, [[1, 23], [37, 24]]], [30, [[19, 15], [26, 16]]]], 30 =&gt; [[30, [[5, 115], [10, 116]]], [28, [[19, 47], [10, 48]]], [30, [[15, 24], [25, 25]]], [30, [[23, 15], [25, 16]]]], 31 =&gt; [[30, [[13, 115], [3, 116]]], [28, [[2, 46], [29, 47]]], [30, [[42, 24], [1, 25]]], [30, [[23, 15], [28, 16]]]], 32 =&gt; [[30, [[17, 115], [0, 0]]], [28, [[10, 46], [23, 47]]], [30, [[10, 24], [35, 25]]], [30, [[19, 15], [35, 16]]]], 33 =&gt; [[30, [[17, 115], [1, 116]]], [28, [[14, 46], [21, 47]]], [30, [[29, 24], [19, 25]]], [30, [[11, 15], [46, 16]]]], 34 =&gt; [[30, [[13, 115], [6, 116]]], [28, [[14, 46], [23, 47]]], [30, [[44, 24], [7, 25]]], [30, [[59, 16], [1, 17]]]], 35 =&gt; [[30, [[12, 121], [7, 122]]], [28, [[12, 47], [26, 48]]], [30, [[39, 24], [14, 25]]], [30, [[22, 15], [41, 16]]]], 36 =&gt; [[30, [[6, 121], [14, 122]]], [28, [[6, 47], [34, 48]]], [30, [[46, 24], [10, 25]]], [30, [[2, 15], [64, 16]]]], 37 =&gt; [[30, [[17, 122], [4, 123]]], [28, [[29, 46], [14, 47]]], [30, [[49, 24], [10, 25]]], [30, [[24, 15], [46, 16]]]], 38 =&gt; [[30, [[4, 122], [18, 123]]], [28, [[13, 46], [32, 47]]], [30, [[48, 24], [14, 25]]], [30, [[42, 15], [32, 16]]]], 39 =&gt; [[30, [[20, 117], [4, 118]]], [28, [[40, 47], [7, 48]]], [30, [[43, 24], [22, 25]]], [30, [[10, 15], [67, 16]]]], 40 =&gt; [[30, [[19, 118], [6, 119]]], [28, [[18, 47], [31, 48]]], [30, [[34, 24], [34, 25]]], [30, [[20, 15], [61, 16]]]]]</span>
  358. </code>
  359. <section class="phpdocumentor-description"></section>
  360. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  361. Tags
  362. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  363. </h5>
  364. <dl class="phpdocumentor-tag-list">
  365. <dt class="phpdocumentor-tag-list__entry">
  366. <span class="phpdocumentor-tag__name">see</span>
  367. </dt>
  368. <dd class="phpdocumentor-tag-list__definition">
  369. <span class="phpdocumentor-tag-link"><a href="http://www.thonky.com/qr-code-tutorial/error-correction-table"><abbr title="http://www.thonky.com/qr-code-tutorial/error-correction-table">http://www.thonky.com/qr-code-tutorial/error-correction-table</abbr></a></span>
  370. </dd>
  371. </dl>
  372. </article>
  373. <article class="phpdocumentor-element -constant -private ">
  374. <h4 class="phpdocumentor-element__name" id="constant_TOTAL_CODEWORDS">
  375. TOTAL_CODEWORDS
  376. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_TOTAL_CODEWORDS" class="headerlink"><i class="fas fa-link"></i></a>
  377. </h4>
  378. <aside class="phpdocumentor-element-found-in">
  379. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  380. :
  381. <span class="phpdocumentor-element-found-in__line">213</span>
  382. </aside>
  383. <code class="phpdocumentor-signature phpdocumentor-code ">
  384. <span class="phpdocumentor-signature__visibility">private</span>
  385. <span class="phpdocumentor-signature__type">mixed</span>
  386. <span class="phpdocumentor-signature__name">TOTAL_CODEWORDS</span>
  387. = <span class="phpdocumentor-signature__default-value">[1 =&gt; 26, 2 =&gt; 44, 3 =&gt; 70, 4 =&gt; 100, 5 =&gt; 134, 6 =&gt; 172, 7 =&gt; 196, 8 =&gt; 242, 9 =&gt; 292, 10 =&gt; 346, 11 =&gt; 404, 12 =&gt; 466, 13 =&gt; 532, 14 =&gt; 581, 15 =&gt; 655, 16 =&gt; 733, 17 =&gt; 815, 18 =&gt; 901, 19 =&gt; 991, 20 =&gt; 1085, 21 =&gt; 1156, 22 =&gt; 1258, 23 =&gt; 1364, 24 =&gt; 1474, 25 =&gt; 1588, 26 =&gt; 1706, 27 =&gt; 1828, 28 =&gt; 1921, 29 =&gt; 2051, 30 =&gt; 2185, 31 =&gt; 2323, 32 =&gt; 2465, 33 =&gt; 2611, 34 =&gt; 2761, 35 =&gt; 2876, 36 =&gt; 3034, 37 =&gt; 3196, 38 =&gt; 3362, 39 =&gt; 3532, 40 =&gt; 3706]</span>
  388. </code>
  389. <section class="phpdocumentor-description"></section>
  390. <section class="phpdocumentor-description"></section>
  391. </article>
  392. <article class="phpdocumentor-element -constant -private ">
  393. <h4 class="phpdocumentor-element__name" id="constant_VERSION_PATTERN">
  394. VERSION_PATTERN
  395. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_VERSION_PATTERN" class="headerlink"><i class="fas fa-link"></i></a>
  396. </h4>
  397. <aside class="phpdocumentor-element-found-in">
  398. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  399. :
  400. <span class="phpdocumentor-element-found-in__line">77</span>
  401. </aside>
  402. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Annex D, Table D.1 - Version information bit stream for each version</p>
  403. <code class="phpdocumentor-signature phpdocumentor-code ">
  404. <span class="phpdocumentor-signature__visibility">private</span>
  405. <span class="phpdocumentor-signature__type">array&lt;string|int, int&gt;</span>
  406. <span class="phpdocumentor-signature__name">VERSION_PATTERN</span>
  407. = <span class="phpdocumentor-signature__default-value">[7 =&gt; 0b111110010010100, 8 =&gt; 0b1000010110111100, 9 =&gt; 0b1001101010011001, 10 =&gt; 0b1010010011010011, 11 =&gt; 0b1011101111110110, 12 =&gt; 0b1100011101100010, 13 =&gt; 0b1101100001000111, 14 =&gt; 0b1110011000001101, 15 =&gt; 0b1111100100101000, 16 =&gt; 0b10000101101111000, 17 =&gt; 0b10001010001011101, 18 =&gt; 0b10010101000010111, 19 =&gt; 0b10011010100110010, 20 =&gt; 0b10100100110100110, 21 =&gt; 0b10101011010000011, 22 =&gt; 0b10110100011001001, 23 =&gt; 0b10111011111101100, 24 =&gt; 0b11000111011000100, 25 =&gt; 0b11001000111100001, 26 =&gt; 0b11010111110101011, 27 =&gt; 0b11011000010001110, 28 =&gt; 0b11100110000011010, 29 =&gt; 0b11101001100111111, 30 =&gt; 0b11110110101110101, 31 =&gt; 0b11111001001010000, 32 =&gt; 0b100000100111010101, 33 =&gt; 0b100001011011110000, 34 =&gt; 0b100010100010111010, 35 =&gt; 0b100011011110011111, 36 =&gt; 0b100100101100001011, 37 =&gt; 0b100101010000101110, 38 =&gt; 0b100110101001100100, 39 =&gt; 0b100111010101000001, 40 =&gt; 0b101000110001101001]</span>
  408. </code>
  409. <section class="phpdocumentor-description"><p>no version pattern for QR Codes &lt; 7</p>
  410. </section>
  411. </article>
  412. </section>
  413. <section class="phpdocumentor-properties">
  414. <h3 class="phpdocumentor-elements__header" id="properties">
  415. Properties
  416. <a href="classes/chillerlan-QRCode-Common-Version.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  417. </h3>
  418. <article
  419. class="
  420. phpdocumentor-element
  421. -property
  422. -private
  423. "
  424. >
  425. <h4 class="phpdocumentor-element__name" id="property_version">
  426. $version
  427. <a href="classes/chillerlan-QRCode-Common-Version.html#property_version" class="headerlink"><i class="fas fa-link"></i></a>
  428. <span class="phpdocumentor-element__modifiers">
  429. </span>
  430. </h4>
  431. <aside class="phpdocumentor-element-found-in">
  432. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  433. :
  434. <span class="phpdocumentor-element-found-in__line">259</span>
  435. </aside>
  436. <p class="phpdocumentor-summary">QR Code version number</p>
  437. <code class="phpdocumentor-code phpdocumentor-signature ">
  438. <span class="phpdocumentor-signature__visibility">private</span>
  439. <span class="phpdocumentor-signature__type">int</span>
  440. <span class="phpdocumentor-signature__name">$version</span>
  441. </code>
  442. <section class="phpdocumentor-description"></section>
  443. </article>
  444. </section>
  445. <section class="phpdocumentor-methods">
  446. <h3 class="phpdocumentor-elements__header" id="methods">
  447. Methods
  448. <a href="classes/chillerlan-QRCode-Common-Version.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  449. </h3>
  450. <article
  451. class="phpdocumentor-element
  452. -method
  453. -public
  454. "
  455. >
  456. <h4 class="phpdocumentor-element__name" id="method___construct">
  457. __construct()
  458. <a href="classes/chillerlan-QRCode-Common-Version.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  459. </h4>
  460. <aside class="phpdocumentor-element-found-in">
  461. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  462. :
  463. <span class="phpdocumentor-element-found-in__line">266</span>
  464. </aside>
  465. <p class="phpdocumentor-summary">Version constructor.</p>
  466. <code class="phpdocumentor-code phpdocumentor-signature ">
  467. <span class="phpdocumentor-signature__visibility">public</span>
  468. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  469. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  470. <dl class="phpdocumentor-argument-list">
  471. <dt class="phpdocumentor-argument-list__entry">
  472. <span class="phpdocumentor-signature__argument__name">$version</span>
  473. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  474. </dt>
  475. <dd class="phpdocumentor-argument-list__definition">
  476. <section class="phpdocumentor-description"></section>
  477. </dd>
  478. </dl>
  479. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  480. Tags
  481. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  482. </h5>
  483. <dl class="phpdocumentor-tag-list">
  484. <dt class="phpdocumentor-tag-list__entry">
  485. <span class="phpdocumentor-tag__name">throws</span>
  486. </dt>
  487. <dd class="phpdocumentor-tag-list__definition">
  488. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  489. </dd>
  490. </dl>
  491. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  492. <span class="phpdocumentor-signature__response_type">mixed</span>
  493. &mdash;
  494. </article>
  495. <article
  496. class="phpdocumentor-element
  497. -method
  498. -public
  499. "
  500. >
  501. <h4 class="phpdocumentor-element__name" id="method___toString">
  502. __toString()
  503. <a href="classes/chillerlan-QRCode-Common-Version.html#method___toString" class="headerlink"><i class="fas fa-link"></i></a>
  504. </h4>
  505. <aside class="phpdocumentor-element-found-in">
  506. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  507. :
  508. <span class="phpdocumentor-element-found-in__line">278</span>
  509. </aside>
  510. <p class="phpdocumentor-summary">returns the current version number as string</p>
  511. <code class="phpdocumentor-code phpdocumentor-signature ">
  512. <span class="phpdocumentor-signature__visibility">public</span>
  513. <span class="phpdocumentor-signature__name">__toString</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  514. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  515. <span class="phpdocumentor-signature__response_type">string</span>
  516. &mdash;
  517. </article>
  518. <article
  519. class="phpdocumentor-element
  520. -method
  521. -public
  522. "
  523. >
  524. <h4 class="phpdocumentor-element__name" id="method_getAlignmentPattern">
  525. getAlignmentPattern()
  526. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getAlignmentPattern" class="headerlink"><i class="fas fa-link"></i></a>
  527. </h4>
  528. <aside class="phpdocumentor-element-found-in">
  529. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  530. :
  531. <span class="phpdocumentor-element-found-in__line">308</span>
  532. </aside>
  533. <p class="phpdocumentor-summary">the alignment patterns for the current version</p>
  534. <code class="phpdocumentor-code phpdocumentor-signature ">
  535. <span class="phpdocumentor-signature__visibility">public</span>
  536. <span class="phpdocumentor-signature__name">getAlignmentPattern</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, int&gt;</span></code>
  537. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  538. <span class="phpdocumentor-signature__response_type">array&lt;string|int, int&gt;</span>
  539. &mdash;
  540. </article>
  541. <article
  542. class="phpdocumentor-element
  543. -method
  544. -public
  545. "
  546. >
  547. <h4 class="phpdocumentor-element__name" id="method_getDimension">
  548. getDimension()
  549. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getDimension" class="headerlink"><i class="fas fa-link"></i></a>
  550. </h4>
  551. <aside class="phpdocumentor-element-found-in">
  552. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  553. :
  554. <span class="phpdocumentor-element-found-in__line">292</span>
  555. </aside>
  556. <p class="phpdocumentor-summary">the matrix size for the given version</p>
  557. <code class="phpdocumentor-code phpdocumentor-signature ">
  558. <span class="phpdocumentor-signature__visibility">public</span>
  559. <span class="phpdocumentor-signature__name">getDimension</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  560. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  561. <span class="phpdocumentor-signature__response_type">int</span>
  562. &mdash;
  563. </article>
  564. <article
  565. class="phpdocumentor-element
  566. -method
  567. -public
  568. "
  569. >
  570. <h4 class="phpdocumentor-element__name" id="method_getMaxLengthForMode">
  571. getMaxLengthForMode()
  572. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getMaxLengthForMode" class="headerlink"><i class="fas fa-link"></i></a>
  573. </h4>
  574. <aside class="phpdocumentor-element-found-in">
  575. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  576. :
  577. <span class="phpdocumentor-element-found-in__line">317</span>
  578. </aside>
  579. <p class="phpdocumentor-summary">the maximum character count for the given $mode and $eccLevel</p>
  580. <code class="phpdocumentor-code phpdocumentor-signature ">
  581. <span class="phpdocumentor-signature__visibility">public</span>
  582. <span class="phpdocumentor-signature__name">getMaxLengthForMode</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$mode</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$eccLevel</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int|null</span></code>
  583. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  584. <dl class="phpdocumentor-argument-list">
  585. <dt class="phpdocumentor-argument-list__entry">
  586. <span class="phpdocumentor-signature__argument__name">$mode</span>
  587. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  588. </dt>
  589. <dd class="phpdocumentor-argument-list__definition">
  590. <section class="phpdocumentor-description"></section>
  591. </dd>
  592. <dt class="phpdocumentor-argument-list__entry">
  593. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  594. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  595. </dt>
  596. <dd class="phpdocumentor-argument-list__definition">
  597. <section class="phpdocumentor-description"></section>
  598. </dd>
  599. </dl>
  600. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  601. Tags
  602. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  603. </h5>
  604. <dl class="phpdocumentor-tag-list">
  605. <dt class="phpdocumentor-tag-list__entry">
  606. <span class="phpdocumentor-tag__name">throws</span>
  607. </dt>
  608. <dd class="phpdocumentor-tag-list__definition">
  609. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  610. </dd>
  611. </dl>
  612. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  613. <span class="phpdocumentor-signature__response_type">int|null</span>
  614. &mdash;
  615. </article>
  616. <article
  617. class="phpdocumentor-element
  618. -method
  619. -public
  620. "
  621. >
  622. <h4 class="phpdocumentor-element__name" id="method_getRSBlocks">
  623. getRSBlocks()
  624. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getRSBlocks" class="headerlink"><i class="fas fa-link"></i></a>
  625. </h4>
  626. <aside class="phpdocumentor-element-found-in">
  627. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  628. :
  629. <span class="phpdocumentor-element-found-in__line">336</span>
  630. </aside>
  631. <p class="phpdocumentor-summary">returns ECC block information for the given $version and $eccLevel</p>
  632. <code class="phpdocumentor-code phpdocumentor-signature ">
  633. <span class="phpdocumentor-signature__visibility">public</span>
  634. <span class="phpdocumentor-signature__name">getRSBlocks</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$eccLevel</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  635. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  636. <dl class="phpdocumentor-argument-list">
  637. <dt class="phpdocumentor-argument-list__entry">
  638. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  639. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  640. </dt>
  641. <dd class="phpdocumentor-argument-list__definition">
  642. <section class="phpdocumentor-description"></section>
  643. </dd>
  644. </dl>
  645. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  646. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  647. &mdash;
  648. </article>
  649. <article
  650. class="phpdocumentor-element
  651. -method
  652. -public
  653. "
  654. >
  655. <h4 class="phpdocumentor-element__name" id="method_getTotalCodewords">
  656. getTotalCodewords()
  657. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getTotalCodewords" class="headerlink"><i class="fas fa-link"></i></a>
  658. </h4>
  659. <aside class="phpdocumentor-element-found-in">
  660. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  661. :
  662. <span class="phpdocumentor-element-found-in__line">343</span>
  663. </aside>
  664. <p class="phpdocumentor-summary">returns the maximum codewords for the current version</p>
  665. <code class="phpdocumentor-code phpdocumentor-signature ">
  666. <span class="phpdocumentor-signature__visibility">public</span>
  667. <span class="phpdocumentor-signature__name">getTotalCodewords</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  668. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  669. <span class="phpdocumentor-signature__response_type">int</span>
  670. &mdash;
  671. </article>
  672. <article
  673. class="phpdocumentor-element
  674. -method
  675. -public
  676. "
  677. >
  678. <h4 class="phpdocumentor-element__name" id="method_getVersionNumber">
  679. getVersionNumber()
  680. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getVersionNumber" class="headerlink"><i class="fas fa-link"></i></a>
  681. </h4>
  682. <aside class="phpdocumentor-element-found-in">
  683. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  684. :
  685. <span class="phpdocumentor-element-found-in__line">285</span>
  686. </aside>
  687. <p class="phpdocumentor-summary">returns the current version number</p>
  688. <code class="phpdocumentor-code phpdocumentor-signature ">
  689. <span class="phpdocumentor-signature__visibility">public</span>
  690. <span class="phpdocumentor-signature__name">getVersionNumber</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  691. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  692. <span class="phpdocumentor-signature__response_type">int</span>
  693. &mdash;
  694. </article>
  695. <article
  696. class="phpdocumentor-element
  697. -method
  698. -public
  699. "
  700. >
  701. <h4 class="phpdocumentor-element__name" id="method_getVersionPattern">
  702. getVersionPattern()
  703. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getVersionPattern" class="headerlink"><i class="fas fa-link"></i></a>
  704. </h4>
  705. <aside class="phpdocumentor-element-found-in">
  706. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/Version.php"><a href="files/src-common-version.html"><abbr title="src/Common/Version.php">Version.php</abbr></a></abbr>
  707. :
  708. <span class="phpdocumentor-element-found-in__line">299</span>
  709. </aside>
  710. <p class="phpdocumentor-summary">the version pattern for the given version</p>
  711. <code class="phpdocumentor-code phpdocumentor-signature ">
  712. <span class="phpdocumentor-signature__visibility">public</span>
  713. <span class="phpdocumentor-signature__name">getVersionPattern</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int|null</span></code>
  714. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  715. <span class="phpdocumentor-signature__response_type">int|null</span>
  716. &mdash;
  717. </article>
  718. </section>
  719. <script type="text/javascript">
  720. function loadExternalCodeSnippets(line) {
  721. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  722. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  723. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  724. var language = 'php';
  725. var code = document.createElement('code');
  726. code.className = 'language-' + language;
  727. pre.textContent = '';
  728. pre.setAttribute('data-line', line)
  729. code.textContent = 'Loading…';
  730. pre.appendChild(code);
  731. var xhr = new XMLHttpRequest();
  732. xhr.open('GET', src, true);
  733. xhr.onreadystatechange = function () {
  734. if (xhr.readyState == 4) {
  735. if (xhr.status < 400 && xhr.responseText) {
  736. code.textContent = xhr.responseText;
  737. Prism.highlightElement(code);
  738. }
  739. else if (xhr.status >= 400) {
  740. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  741. }
  742. else {
  743. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  744. }
  745. }
  746. };
  747. xhr.send(null);
  748. });
  749. }
  750. var modals = document.querySelectorAll("[data-modal]");
  751. modals.forEach(function (trigger) {
  752. trigger.addEventListener("click", function (event) {
  753. //event.preventDefault();
  754. const modal = document.getElementById(trigger.dataset.modal);
  755. modal.classList.add("phpdocumentor-modal__open");
  756. loadExternalCodeSnippets(trigger.dataset.line)
  757. const exits = modal.querySelectorAll("[data-exit-button]");
  758. exits.forEach(function (exit) {
  759. exit.addEventListener("click", function (event) {
  760. event.preventDefault();
  761. modal.classList.remove("phpdocumentor-modal__open");
  762. });
  763. });
  764. });
  765. });
  766. </script>
  767. </article>
  768. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  769. <section class="phpdocumentor-search-results__dialog">
  770. <header class="phpdocumentor-search-results__header">
  771. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  772. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  773. </header>
  774. <section class="phpdocumentor-search-results__body">
  775. <ul class="phpdocumentor-search-results__entries"></ul>
  776. </section>
  777. </section>
  778. </section>
  779. </div>
  780. </div>
  781. <a href="classes/chillerlan-QRCode-Common-Version.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  782. </main>
  783. <script>
  784. cssVars({});
  785. </script>
  786. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  787. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  788. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  789. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  790. </body>
  791. </html>