chillerlan-QRCode-Common-Version.html 65 KB

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