chillerlan-QRCode-Common-Version.html 60 KB

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