chillerlan-QRCode-Common-Version.html 60 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022
  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=Open+Sans:wght@100;200;300;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/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. </ul>
  59. </nav>
  60. </header>
  61. <main class="phpdocumentor">
  62. <div class="phpdocumentor-section">
  63. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  64. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  65. Menu
  66. </label>
  67. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  68. <section class="phpdocumentor-sidebar__category">
  69. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  70. <h4 class="phpdocumentor-sidebar__root-namespace">
  71. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  72. </h4>
  73. <ul class="phpdocumentor-list">
  74. <li>
  75. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  76. </li>
  77. <li>
  78. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  79. </li>
  80. </ul>
  81. <h4 class="phpdocumentor-sidebar__root-namespace">
  82. <a href="namespaces/output.html" class="">Output</a>
  83. </h4>
  84. </section>
  85. <section class="phpdocumentor-sidebar__category">
  86. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  87. <h4 class="phpdocumentor-sidebar__root-namespace">
  88. <a href="packages/Application.html" class="">Application</a>
  89. </h4>
  90. </section>
  91. <section class="phpdocumentor-sidebar__category">
  92. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  93. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  94. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  95. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  96. </section>
  97. <section class="phpdocumentor-sidebar__category">
  98. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  100. </section>
  101. </aside>
  102. <div class="phpdocumentor-column -nine phpdocumentor-content">
  103. <section>
  104. <ul class="phpdocumentor-breadcrumbs">
  105. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  106. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  107. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-common.html">Common</a></li>
  108. </ul>
  109. <article class="phpdocumentor-element -class">
  110. <h2 class="phpdocumentor-content__title">
  111. Version
  112. <div class="phpdocumentor-element__package">
  113. in package
  114. <ul class="phpdocumentor-breadcrumbs">
  115. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  116. </ul>
  117. </div>
  118. </h2>
  119. <div class="phpdocumentor-label-line">
  120. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  121. </div>
  122. <aside class="phpdocumentor-element-found-in">
  123. <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>
  124. :
  125. <span class="phpdocumentor-element-found-in__line">18</span>
  126. </aside>
  127. <p class="phpdocumentor-summary">Version related tables and methods</p>
  128. <h3 id="toc">
  129. Table of Contents
  130. <a href="classes/chillerlan-QRCode-Common-Version.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  131. </h3>
  132. <h4 id="toc-constants">
  133. Constants
  134. <a href="classes/chillerlan-QRCode-Common-Version.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  135. </h4>
  136. <dl class="phpdocumentor-table-of-contents">
  137. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  138. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_AUTO">AUTO</a>
  139. <span>
  140. &nbsp;= -1 </span>
  141. </dt>
  142. <dd>Enable version auto detection</dd>
  143. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  144. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_ALIGNMENT_PATTERN">ALIGNMENT_PATTERN</a>
  145. <span>
  146. &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>
  147. </dt>
  148. <dd>ISO/IEC 18004:2000 Annex E, Table E.1 - Row/column coordinates of center module of Alignment Patterns</dd>
  149. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  150. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_RSBLOCKS">RSBLOCKS</a>
  151. <span>
  152. &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>
  153. </dt>
  154. <dd>ISO/IEC 18004:2000 Tables 13-22 - Error correction characteristics</dd>
  155. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  156. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_TOTAL_CODEWORDS">TOTAL_CODEWORDS</a>
  157. <span>
  158. &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>
  159. </dt>
  160. <dd>ISO/IEC 18004:2000 Table 1 - Data capacity of all versions of QR Code</dd>
  161. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  162. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_VERSION_PATTERN">VERSION_PATTERN</a>
  163. <span>
  164. &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>
  165. </dt>
  166. <dd>ISO/IEC 18004:2000 Annex D, Table D.1 - Version information bit stream for each version</dd>
  167. </dl>
  168. <h4 id="toc-properties">
  169. Properties
  170. <a href="classes/chillerlan-QRCode-Common-Version.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  171. </h4>
  172. <dl class="phpdocumentor-table-of-contents">
  173. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  174. <a href="classes/chillerlan-QRCode-Common-Version.html#property_version">$version</a>
  175. <span>
  176. &nbsp;: int </span>
  177. </dt>
  178. <dd>QR Code version number</dd>
  179. </dl>
  180. <h4 id="toc-methods">
  181. Methods
  182. <a href="classes/chillerlan-QRCode-Common-Version.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  183. </h4>
  184. <dl class="phpdocumentor-table-of-contents">
  185. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  186. <a href="classes/chillerlan-QRCode-Common-Version.html#method___construct">__construct()</a>
  187. <span>
  188. &nbsp;: mixed </span>
  189. </dt>
  190. <dd>Version constructor.</dd>
  191. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  192. <a href="classes/chillerlan-QRCode-Common-Version.html#method___toString">__toString()</a>
  193. <span>
  194. &nbsp;: string </span>
  195. </dt>
  196. <dd>returns the current version number as string</dd>
  197. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  198. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getAlignmentPattern">getAlignmentPattern()</a>
  199. <span>
  200. &nbsp;: array&lt;string|int, int&gt; </span>
  201. </dt>
  202. <dd>the alignment patterns for the current version</dd>
  203. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  204. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getDimension">getDimension()</a>
  205. <span>
  206. &nbsp;: int </span>
  207. </dt>
  208. <dd>the matrix size for the given version</dd>
  209. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  210. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getRSBlocks">getRSBlocks()</a>
  211. <span>
  212. &nbsp;: array&lt;string|int, mixed&gt; </span>
  213. </dt>
  214. <dd>returns ECC block information for the given $version and $eccLevel</dd>
  215. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  216. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getTotalCodewords">getTotalCodewords()</a>
  217. <span>
  218. &nbsp;: int </span>
  219. </dt>
  220. <dd>returns the maximum codewords for the current version</dd>
  221. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  222. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getVersionNumber">getVersionNumber()</a>
  223. <span>
  224. &nbsp;: int </span>
  225. </dt>
  226. <dd>returns the current version number</dd>
  227. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  228. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getVersionPattern">getVersionPattern()</a>
  229. <span>
  230. &nbsp;: int|null </span>
  231. </dt>
  232. <dd>the version pattern for the given version</dd>
  233. </dl>
  234. <section class="phpdocumentor-constants">
  235. <h3 class="phpdocumentor-elements__header" id="constants">
  236. Constants
  237. <a href="classes/chillerlan-QRCode-Common-Version.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  238. </h3>
  239. <article class="phpdocumentor-element -constant -public ">
  240. <h4 class="phpdocumentor-element__name" id="constant_AUTO">
  241. AUTO
  242. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_AUTO" class="headerlink"><i class="fas fa-link"></i></a>
  243. </h4>
  244. <aside class="phpdocumentor-element-found-in">
  245. <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>
  246. :
  247. <span class="phpdocumentor-element-found-in__line">27</span>
  248. </aside>
  249. <p class="phpdocumentor-summary">Enable version auto detection</p>
  250. <code class="phpdocumentor-signature phpdocumentor-code ">
  251. <span class="phpdocumentor-signature__visibility">public</span>
  252. <span class="phpdocumentor-signature__type">int</span>
  253. <span class="phpdocumentor-signature__name">AUTO</span>
  254. = <span class="phpdocumentor-signature__default-value">-1</span>
  255. </code>
  256. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  257. Tags
  258. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_AUTO#tags" class="headerlink"><i class="fas fa-link"></i></a>
  259. </h5>
  260. <dl class="phpdocumentor-tag-list">
  261. <dt class="phpdocumentor-tag-list__entry">
  262. <span class="phpdocumentor-tag__name">see</span>
  263. </dt>
  264. <dd class="phpdocumentor-tag-list__definition">
  265. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QROptionsTrait.html#property_version"><abbr title="\chillerlan\QRCode\QROptionsTrait::$version">QROptionsTrait::$version</abbr></a></span>
  266. </dd>
  267. </dl>
  268. </article>
  269. <article class="phpdocumentor-element -constant -private ">
  270. <h4 class="phpdocumentor-element__name" id="constant_ALIGNMENT_PATTERN">
  271. ALIGNMENT_PATTERN
  272. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_ALIGNMENT_PATTERN" class="headerlink"><i class="fas fa-link"></i></a>
  273. </h4>
  274. <aside class="phpdocumentor-element-found-in">
  275. <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>
  276. :
  277. <span class="phpdocumentor-element-found-in__line">36</span>
  278. </aside>
  279. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Annex E, Table E.1 - Row/column coordinates of center module of Alignment Patterns</p>
  280. <code class="phpdocumentor-signature phpdocumentor-code ">
  281. <span class="phpdocumentor-signature__visibility">private</span>
  282. <span class="phpdocumentor-signature__type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  283. <span class="phpdocumentor-signature__name">ALIGNMENT_PATTERN</span>
  284. = <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>
  285. </code>
  286. <section class="phpdocumentor-description"><p>version -&gt; pattern</p>
  287. </section>
  288. </article>
  289. <article class="phpdocumentor-element -constant -private ">
  290. <h4 class="phpdocumentor-element__name" id="constant_RSBLOCKS">
  291. RSBLOCKS
  292. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_RSBLOCKS" class="headerlink"><i class="fas fa-link"></i></a>
  293. </h4>
  294. <aside class="phpdocumentor-element-found-in">
  295. <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>
  296. :
  297. <span class="phpdocumentor-element-found-in__line">128</span>
  298. </aside>
  299. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Tables 13-22 - Error correction characteristics</p>
  300. <code class="phpdocumentor-signature phpdocumentor-code ">
  301. <span class="phpdocumentor-signature__visibility">private</span>
  302. <span class="phpdocumentor-signature__type">mixed</span>
  303. <span class="phpdocumentor-signature__name">RSBLOCKS</span>
  304. = <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>
  305. </code>
  306. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  307. Tags
  308. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_RSBLOCKS#tags" class="headerlink"><i class="fas fa-link"></i></a>
  309. </h5>
  310. <dl class="phpdocumentor-tag-list">
  311. <dt class="phpdocumentor-tag-list__entry">
  312. <span class="phpdocumentor-tag__name">see</span>
  313. </dt>
  314. <dd class="phpdocumentor-tag-list__definition">
  315. <span class="phpdocumentor-tag-link"><a href="http://www.thonky.com/qr-code-tutorial/error-correction-table">http://www.thonky.com/qr-code-tutorial/error-correction-table</a></span>
  316. </dd>
  317. </dl>
  318. </article>
  319. <article class="phpdocumentor-element -constant -private ">
  320. <h4 class="phpdocumentor-element__name" id="constant_TOTAL_CODEWORDS">
  321. TOTAL_CODEWORDS
  322. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_TOTAL_CODEWORDS" class="headerlink"><i class="fas fa-link"></i></a>
  323. </h4>
  324. <aside class="phpdocumentor-element-found-in">
  325. <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>
  326. :
  327. <span class="phpdocumentor-element-found-in__line">174</span>
  328. </aside>
  329. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Table 1 - Data capacity of all versions of QR Code</p>
  330. <code class="phpdocumentor-signature phpdocumentor-code ">
  331. <span class="phpdocumentor-signature__visibility">private</span>
  332. <span class="phpdocumentor-signature__type">mixed</span>
  333. <span class="phpdocumentor-signature__name">TOTAL_CODEWORDS</span>
  334. = <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>
  335. </code>
  336. </article>
  337. <article class="phpdocumentor-element -constant -private ">
  338. <h4 class="phpdocumentor-element__name" id="constant_VERSION_PATTERN">
  339. VERSION_PATTERN
  340. <a href="classes/chillerlan-QRCode-Common-Version.html#constant_VERSION_PATTERN" class="headerlink"><i class="fas fa-link"></i></a>
  341. </h4>
  342. <aside class="phpdocumentor-element-found-in">
  343. <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>
  344. :
  345. <span class="phpdocumentor-element-found-in__line">86</span>
  346. </aside>
  347. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Annex D, Table D.1 - Version information bit stream for each version</p>
  348. <code class="phpdocumentor-signature phpdocumentor-code ">
  349. <span class="phpdocumentor-signature__visibility">private</span>
  350. <span class="phpdocumentor-signature__type">array&lt;string|int, int&gt;</span>
  351. <span class="phpdocumentor-signature__name">VERSION_PATTERN</span>
  352. = <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>
  353. </code>
  354. <section class="phpdocumentor-description"><p>no version pattern for QR Codes &lt; 7</p>
  355. </section>
  356. </article>
  357. </section>
  358. <section class="phpdocumentor-properties">
  359. <h3 class="phpdocumentor-elements__header" id="properties">
  360. Properties
  361. <a href="classes/chillerlan-QRCode-Common-Version.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  362. </h3>
  363. <article
  364. class="
  365. phpdocumentor-element
  366. -property
  367. -private
  368. "
  369. >
  370. <h4 class="phpdocumentor-element__name" id="property_version">
  371. $version
  372. <a href="classes/chillerlan-QRCode-Common-Version.html#property_version" class="headerlink"><i class="fas fa-link"></i></a>
  373. <span class="phpdocumentor-element__modifiers">
  374. </span>
  375. </h4>
  376. <aside class="phpdocumentor-element-found-in">
  377. <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>
  378. :
  379. <span class="phpdocumentor-element-found-in__line">220</span>
  380. </aside>
  381. <p class="phpdocumentor-summary">QR Code version number</p>
  382. <code class="phpdocumentor-code phpdocumentor-signature ">
  383. <span class="phpdocumentor-signature__visibility">private</span>
  384. <span class="phpdocumentor-signature__type">int</span>
  385. <span class="phpdocumentor-signature__name">$version</span>
  386. </code>
  387. </article>
  388. </section>
  389. <section class="phpdocumentor-methods">
  390. <h3 class="phpdocumentor-elements__header" id="methods">
  391. Methods
  392. <a href="classes/chillerlan-QRCode-Common-Version.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  393. </h3>
  394. <article
  395. class="phpdocumentor-element
  396. -method
  397. -public
  398. "
  399. >
  400. <h4 class="phpdocumentor-element__name" id="method___construct">
  401. __construct()
  402. <a href="classes/chillerlan-QRCode-Common-Version.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  403. </h4>
  404. <aside class="phpdocumentor-element-found-in">
  405. <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>
  406. :
  407. <span class="phpdocumentor-element-found-in__line">227</span>
  408. </aside>
  409. <p class="phpdocumentor-summary">Version constructor.</p>
  410. <code class="phpdocumentor-code phpdocumentor-signature ">
  411. <span class="phpdocumentor-signature__visibility">public</span>
  412. <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>
  413. <div class="phpdocumentor-label-line">
  414. </div>
  415. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  416. <dl class="phpdocumentor-argument-list">
  417. <dt class="phpdocumentor-argument-list__entry">
  418. <span class="phpdocumentor-signature__argument__name">$version</span>
  419. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  420. </dt>
  421. <dd class="phpdocumentor-argument-list__definition">
  422. </dd>
  423. </dl>
  424. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  425. Tags
  426. <a href="classes/chillerlan-QRCode-Common-Version.html#method___construct#tags" class="headerlink"><i class="fas fa-link"></i></a>
  427. </h5>
  428. <dl class="phpdocumentor-tag-list">
  429. <dt class="phpdocumentor-tag-list__entry">
  430. <span class="phpdocumentor-tag__name">throws</span>
  431. </dt>
  432. <dd class="phpdocumentor-tag-list__definition">
  433. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  434. </dd>
  435. </dl>
  436. </article>
  437. <article
  438. class="phpdocumentor-element
  439. -method
  440. -public
  441. "
  442. >
  443. <h4 class="phpdocumentor-element__name" id="method___toString">
  444. __toString()
  445. <a href="classes/chillerlan-QRCode-Common-Version.html#method___toString" class="headerlink"><i class="fas fa-link"></i></a>
  446. </h4>
  447. <aside class="phpdocumentor-element-found-in">
  448. <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>
  449. :
  450. <span class="phpdocumentor-element-found-in__line">239</span>
  451. </aside>
  452. <p class="phpdocumentor-summary">returns the current version number as string</p>
  453. <code class="phpdocumentor-code phpdocumentor-signature ">
  454. <span class="phpdocumentor-signature__visibility">public</span>
  455. <span class="phpdocumentor-signature__name">__toString</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  456. <div class="phpdocumentor-label-line">
  457. </div>
  458. <section>
  459. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  460. <span class="phpdocumentor-signature__response_type">string</span>
  461. </section>
  462. </article>
  463. <article
  464. class="phpdocumentor-element
  465. -method
  466. -public
  467. "
  468. >
  469. <h4 class="phpdocumentor-element__name" id="method_getAlignmentPattern">
  470. getAlignmentPattern()
  471. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getAlignmentPattern" class="headerlink"><i class="fas fa-link"></i></a>
  472. </h4>
  473. <aside class="phpdocumentor-element-found-in">
  474. <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>
  475. :
  476. <span class="phpdocumentor-element-found-in__line">269</span>
  477. </aside>
  478. <p class="phpdocumentor-summary">the alignment patterns for the current version</p>
  479. <code class="phpdocumentor-code phpdocumentor-signature ">
  480. <span class="phpdocumentor-signature__visibility">public</span>
  481. <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>
  482. <div class="phpdocumentor-label-line">
  483. </div>
  484. <section>
  485. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  486. <span class="phpdocumentor-signature__response_type">array&lt;string|int, int&gt;</span>
  487. </section>
  488. </article>
  489. <article
  490. class="phpdocumentor-element
  491. -method
  492. -public
  493. "
  494. >
  495. <h4 class="phpdocumentor-element__name" id="method_getDimension">
  496. getDimension()
  497. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getDimension" class="headerlink"><i class="fas fa-link"></i></a>
  498. </h4>
  499. <aside class="phpdocumentor-element-found-in">
  500. <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>
  501. :
  502. <span class="phpdocumentor-element-found-in__line">253</span>
  503. </aside>
  504. <p class="phpdocumentor-summary">the matrix size for the given version</p>
  505. <code class="phpdocumentor-code phpdocumentor-signature ">
  506. <span class="phpdocumentor-signature__visibility">public</span>
  507. <span class="phpdocumentor-signature__name">getDimension</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  508. <div class="phpdocumentor-label-line">
  509. </div>
  510. <section>
  511. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  512. <span class="phpdocumentor-signature__response_type">int</span>
  513. </section>
  514. </article>
  515. <article
  516. class="phpdocumentor-element
  517. -method
  518. -public
  519. "
  520. >
  521. <h4 class="phpdocumentor-element__name" id="method_getRSBlocks">
  522. getRSBlocks()
  523. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getRSBlocks" class="headerlink"><i class="fas fa-link"></i></a>
  524. </h4>
  525. <aside class="phpdocumentor-element-found-in">
  526. <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>
  527. :
  528. <span class="phpdocumentor-element-found-in__line">276</span>
  529. </aside>
  530. <p class="phpdocumentor-summary">returns ECC block information for the given $version and $eccLevel</p>
  531. <code class="phpdocumentor-code phpdocumentor-signature ">
  532. <span class="phpdocumentor-signature__visibility">public</span>
  533. <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>
  534. <div class="phpdocumentor-label-line">
  535. </div>
  536. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  537. <dl class="phpdocumentor-argument-list">
  538. <dt class="phpdocumentor-argument-list__entry">
  539. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  540. : <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>
  541. </dt>
  542. <dd class="phpdocumentor-argument-list__definition">
  543. </dd>
  544. </dl>
  545. <section>
  546. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  547. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  548. </section>
  549. </article>
  550. <article
  551. class="phpdocumentor-element
  552. -method
  553. -public
  554. "
  555. >
  556. <h4 class="phpdocumentor-element__name" id="method_getTotalCodewords">
  557. getTotalCodewords()
  558. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getTotalCodewords" class="headerlink"><i class="fas fa-link"></i></a>
  559. </h4>
  560. <aside class="phpdocumentor-element-found-in">
  561. <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>
  562. :
  563. <span class="phpdocumentor-element-found-in__line">283</span>
  564. </aside>
  565. <p class="phpdocumentor-summary">returns the maximum codewords for the current version</p>
  566. <code class="phpdocumentor-code phpdocumentor-signature ">
  567. <span class="phpdocumentor-signature__visibility">public</span>
  568. <span class="phpdocumentor-signature__name">getTotalCodewords</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  569. <div class="phpdocumentor-label-line">
  570. </div>
  571. <section>
  572. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  573. <span class="phpdocumentor-signature__response_type">int</span>
  574. </section>
  575. </article>
  576. <article
  577. class="phpdocumentor-element
  578. -method
  579. -public
  580. "
  581. >
  582. <h4 class="phpdocumentor-element__name" id="method_getVersionNumber">
  583. getVersionNumber()
  584. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getVersionNumber" class="headerlink"><i class="fas fa-link"></i></a>
  585. </h4>
  586. <aside class="phpdocumentor-element-found-in">
  587. <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>
  588. :
  589. <span class="phpdocumentor-element-found-in__line">246</span>
  590. </aside>
  591. <p class="phpdocumentor-summary">returns the current version number</p>
  592. <code class="phpdocumentor-code phpdocumentor-signature ">
  593. <span class="phpdocumentor-signature__visibility">public</span>
  594. <span class="phpdocumentor-signature__name">getVersionNumber</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  595. <div class="phpdocumentor-label-line">
  596. </div>
  597. <section>
  598. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  599. <span class="phpdocumentor-signature__response_type">int</span>
  600. </section>
  601. </article>
  602. <article
  603. class="phpdocumentor-element
  604. -method
  605. -public
  606. "
  607. >
  608. <h4 class="phpdocumentor-element__name" id="method_getVersionPattern">
  609. getVersionPattern()
  610. <a href="classes/chillerlan-QRCode-Common-Version.html#method_getVersionPattern" class="headerlink"><i class="fas fa-link"></i></a>
  611. </h4>
  612. <aside class="phpdocumentor-element-found-in">
  613. <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>
  614. :
  615. <span class="phpdocumentor-element-found-in__line">260</span>
  616. </aside>
  617. <p class="phpdocumentor-summary">the version pattern for the given version</p>
  618. <code class="phpdocumentor-code phpdocumentor-signature ">
  619. <span class="phpdocumentor-signature__visibility">public</span>
  620. <span class="phpdocumentor-signature__name">getVersionPattern</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int|null</span></code>
  621. <div class="phpdocumentor-label-line">
  622. </div>
  623. <section>
  624. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  625. <span class="phpdocumentor-signature__response_type">int|null</span>
  626. </section>
  627. </article>
  628. </section>
  629. <div class="phpdocumentor-modal" id="source-view">
  630. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  631. <div class="phpdocumentor-modal-container">
  632. <div class="phpdocumentor-modal-content">
  633. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Common/Version.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  634. </div>
  635. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  636. </div>
  637. </div>
  638. <script type="text/javascript">
  639. (function () {
  640. function loadExternalCodeSnippet(el, url, line) {
  641. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  642. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  643. const language = 'php';
  644. const code = document.createElement('code');
  645. code.className = 'language-' + language;
  646. pre.textContent = '';
  647. pre.setAttribute('data-line', line)
  648. code.textContent = 'Loading…';
  649. pre.appendChild(code);
  650. var xhr = new XMLHttpRequest();
  651. xhr.open('GET', src, true);
  652. xhr.onreadystatechange = function () {
  653. if (xhr.readyState !== 4) {
  654. return;
  655. }
  656. if (xhr.status < 400 && xhr.responseText) {
  657. code.textContent = xhr.responseText;
  658. Prism.highlightElement(code);
  659. return;
  660. }
  661. if (xhr.status === 404) {
  662. code.textContent = '✖ Error: File could not be found';
  663. return;
  664. }
  665. if (xhr.status >= 400) {
  666. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  667. return;
  668. }
  669. code.textContent = '✖ Error: An unknown error occurred';
  670. };
  671. xhr.send(null);
  672. });
  673. }
  674. const modalButtons = document.querySelectorAll("[data-modal]");
  675. const openedAsLocalFile = window.location.protocol === 'file:';
  676. if (modalButtons.length > 0 && openedAsLocalFile) {
  677. console.warn(
  678. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  679. 'browsers block XHR requests when a page is opened this way'
  680. );
  681. }
  682. modalButtons.forEach(function (trigger) {
  683. if (openedAsLocalFile) {
  684. trigger.setAttribute("hidden", "hidden");
  685. }
  686. trigger.addEventListener("click", function (event) {
  687. event.preventDefault();
  688. const modal = document.getElementById(trigger.dataset.modal);
  689. if (!modal) {
  690. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  691. return;
  692. }
  693. modal.classList.add("phpdocumentor-modal__open");
  694. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  695. const exits = modal.querySelectorAll("[data-exit-button]");
  696. exits.forEach(function (exit) {
  697. exit.addEventListener("click", function (event) {
  698. event.preventDefault();
  699. modal.classList.remove("phpdocumentor-modal__open");
  700. });
  701. });
  702. });
  703. });
  704. })();
  705. </script>
  706. </article>
  707. </section>
  708. <section class="phpdocumentor-on-this-page__sidebar">
  709. <section class="phpdocumentor-on-this-page__content">
  710. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  711. <ul class="phpdocumentor-list -clean">
  712. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  713. <li>
  714. <ul class="phpdocumentor-list -clean">
  715. <li><a href="classes/chillerlan-QRCode-Common-Version.html#toc-constants">Constants</a></li>
  716. <li><a href="classes/chillerlan-QRCode-Common-Version.html#toc-properties">Properties</a></li>
  717. <li><a href="classes/chillerlan-QRCode-Common-Version.html#toc-methods">Methods</a></li>
  718. </ul>
  719. </li>
  720. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  721. <li>
  722. <ul class="phpdocumentor-list -clean">
  723. <li><a href="classes/chillerlan-QRCode-Common-Version.html#constant_AUTO">AUTO</a></li>
  724. <li><a href="classes/chillerlan-QRCode-Common-Version.html#constant_ALIGNMENT_PATTERN">ALIGNMENT_PATTERN</a></li>
  725. <li><a href="classes/chillerlan-QRCode-Common-Version.html#constant_RSBLOCKS">RSBLOCKS</a></li>
  726. <li><a href="classes/chillerlan-QRCode-Common-Version.html#constant_TOTAL_CODEWORDS">TOTAL_CODEWORDS</a></li>
  727. <li><a href="classes/chillerlan-QRCode-Common-Version.html#constant_VERSION_PATTERN">VERSION_PATTERN</a></li>
  728. </ul>
  729. </li>
  730. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  731. <li>
  732. <ul class="phpdocumentor-list -clean">
  733. <li><a href="classes/chillerlan-QRCode-Common-Version.html#property_version">$version<a href="classes/chillerlan-QRCode-Common-Version.html"></li>
  734. </ul>
  735. </li>
  736. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  737. <li>
  738. <ul class="phpdocumentor-list -clean">
  739. <li><a href="classes/chillerlan-QRCode-Common-Version.html#method___construct">__construct()</a></li>
  740. <li><a href="classes/chillerlan-QRCode-Common-Version.html#method___toString">__toString()</a></li>
  741. <li><a href="classes/chillerlan-QRCode-Common-Version.html#method_getAlignmentPattern">getAlignmentPattern()</a></li>
  742. <li><a href="classes/chillerlan-QRCode-Common-Version.html#method_getDimension">getDimension()</a></li>
  743. <li><a href="classes/chillerlan-QRCode-Common-Version.html#method_getRSBlocks">getRSBlocks()</a></li>
  744. <li><a href="classes/chillerlan-QRCode-Common-Version.html#method_getTotalCodewords">getTotalCodewords()</a></li>
  745. <li><a href="classes/chillerlan-QRCode-Common-Version.html#method_getVersionNumber">getVersionNumber()</a></li>
  746. <li><a href="classes/chillerlan-QRCode-Common-Version.html#method_getVersionPattern">getVersionPattern()</a></li>
  747. </ul>
  748. </li>
  749. </ul>
  750. </section>
  751. </section>
  752. </div>
  753. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  754. <section class="phpdocumentor-search-results__dialog">
  755. <header class="phpdocumentor-search-results__header">
  756. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  757. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  758. </header>
  759. <section class="phpdocumentor-search-results__body">
  760. <ul class="phpdocumentor-search-results__entries"></ul>
  761. </section>
  762. </section>
  763. </section>
  764. </div>
  765. <a href="classes/chillerlan-QRCode-Common-Version.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  766. </main>
  767. <script>
  768. cssVars({});
  769. </script>
  770. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  771. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  772. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  773. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  774. </body>
  775. </html>