chillerlan-QRCode-Common-Version.html 60 KB

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