chillerlan-QRCode-Common-EccLevel.html 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. </ul>
  59. </nav>
  60. </header>
  61. <main class="phpdocumentor">
  62. <div class="phpdocumentor-section">
  63. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  64. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  65. Menu
  66. </label>
  67. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  68. <section class="phpdocumentor-sidebar__category">
  69. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  70. <h4 class="phpdocumentor-sidebar__root-namespace">
  71. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  72. </h4>
  73. <ul class="phpdocumentor-list">
  74. <li>
  75. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  76. </li>
  77. <li>
  78. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  79. </li>
  80. </ul>
  81. <h4 class="phpdocumentor-sidebar__root-namespace">
  82. <a href="namespaces/output.html" class="">Output</a>
  83. </h4>
  84. </section>
  85. <section class="phpdocumentor-sidebar__category">
  86. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  87. <h4 class="phpdocumentor-sidebar__root-namespace">
  88. <a href="packages/Application.html" class="">Application</a>
  89. </h4>
  90. </section>
  91. <section class="phpdocumentor-sidebar__category">
  92. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  93. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  94. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  95. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  96. </section>
  97. <section class="phpdocumentor-sidebar__category">
  98. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  100. </section>
  101. </aside>
  102. <div class="phpdocumentor-column -nine phpdocumentor-content">
  103. <section>
  104. <ul class="phpdocumentor-breadcrumbs">
  105. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  106. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  107. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-common.html">Common</a></li>
  108. </ul>
  109. <article class="phpdocumentor-element -class">
  110. <h2 class="phpdocumentor-content__title">
  111. EccLevel
  112. <div class="phpdocumentor-element__package">
  113. in package
  114. <ul class="phpdocumentor-breadcrumbs">
  115. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  116. </ul>
  117. </div>
  118. </h2>
  119. <div class="phpdocumentor-label-line">
  120. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  121. </div>
  122. <aside class="phpdocumentor-element-found-in">
  123. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  124. :
  125. <span class="phpdocumentor-element-found-in__line">19</span>
  126. </aside>
  127. <p class="phpdocumentor-summary">This class encapsulates the four error correction levels defined by the QR code standard.</p>
  128. <h3 id="toc">
  129. Table of Contents
  130. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  131. </h3>
  132. <h4 id="toc-constants">
  133. Constants
  134. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#toc-constants" class="headerlink"><i class="fas fa-link"></i></a>
  135. </h4>
  136. <dl class="phpdocumentor-table-of-contents">
  137. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  138. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_H">H</a>
  139. <span>
  140. &nbsp;= 0b10 </span>
  141. </dt>
  142. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  143. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_L">L</a>
  144. <span>
  145. &nbsp;= 0b1 </span>
  146. </dt>
  147. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  148. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_M">M</a>
  149. <span>
  150. &nbsp;= 0b0 </span>
  151. </dt>
  152. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  153. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_Q">Q</a>
  154. <span>
  155. &nbsp;= 0b11 </span>
  156. </dt>
  157. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  158. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_FORMAT_PATTERN">FORMAT_PATTERN</a>
  159. <span>
  160. &nbsp;= [[
  161. // L
  162. 0b111011111000100,
  163. 0b111001011110011,
  164. 0b111110110101010,
  165. 0b111100010011101,
  166. 0b110011000101111,
  167. 0b110001100011000,
  168. 0b110110001000001,
  169. 0b110100101110110,
  170. ], [
  171. // M
  172. 0b101010000010010,
  173. 0b101000100100101,
  174. 0b101111001111100,
  175. 0b101101101001011,
  176. 0b100010111111001,
  177. 0b100000011001110,
  178. 0b100111110010111,
  179. 0b100101010100000,
  180. ], [
  181. // Q
  182. 0b11010101011111,
  183. 0b11000001101000,
  184. 0b11111100110001,
  185. 0b11101000000110,
  186. 0b10010010110100,
  187. 0b10000110000011,
  188. 0b10111011011010,
  189. 0b10101111101101,
  190. ], [
  191. // H
  192. 0b1011010001001,
  193. 0b1001110111110,
  194. 0b1110011100111,
  195. 0b1100111010000,
  196. 0b11101100010,
  197. 0b1001010101,
  198. 0b110100001100,
  199. 0b100000111011,
  200. ]] </span>
  201. </dt>
  202. <dd>ISO/IEC 18004:2000 Section 8.9 - Format Information</dd>
  203. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  204. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_MAX_BITS">MAX_BITS</a>
  205. <span>
  206. &nbsp;= [
  207. // [ L, M, Q, H] // v =&gt; modules
  208. [0, 0, 0, 0],
  209. // 0 =&gt; will be ignored, index starts at 1
  210. [152, 128, 104, 72],
  211. // 1 =&gt; 21
  212. [272, 224, 176, 128],
  213. // 2 =&gt; 25
  214. [440, 352, 272, 208],
  215. // 3 =&gt; 29
  216. [640, 512, 384, 288],
  217. // 4 =&gt; 33
  218. [864, 688, 496, 368],
  219. // 5 =&gt; 37
  220. [1088, 864, 608, 480],
  221. // 6 =&gt; 41
  222. [1248, 992, 704, 528],
  223. // 7 =&gt; 45
  224. [1552, 1232, 880, 688],
  225. // 8 =&gt; 49
  226. [1856, 1456, 1056, 800],
  227. // 9 =&gt; 53
  228. [2192, 1728, 1232, 976],
  229. // 10 =&gt; 57
  230. [2592, 2032, 1440, 1120],
  231. // 11 =&gt; 61
  232. [2960, 2320, 1648, 1264],
  233. // 12 =&gt; 65
  234. [3424, 2672, 1952, 1440],
  235. // 13 =&gt; 69 NICE!
  236. [3688, 2920, 2088, 1576],
  237. // 14 =&gt; 73
  238. [4184, 3320, 2360, 1784],
  239. // 15 =&gt; 77
  240. [4712, 3624, 2600, 2024],
  241. // 16 =&gt; 81
  242. [5176, 4056, 2936, 2264],
  243. // 17 =&gt; 85
  244. [5768, 4504, 3176, 2504],
  245. // 18 =&gt; 89
  246. [6360, 5016, 3560, 2728],
  247. // 19 =&gt; 93
  248. [6888, 5352, 3880, 3080],
  249. // 20 =&gt; 97
  250. [7456, 5712, 4096, 3248],
  251. // 21 =&gt; 101
  252. [8048, 6256, 4544, 3536],
  253. // 22 =&gt; 105
  254. [8752, 6880, 4912, 3712],
  255. // 23 =&gt; 109
  256. [9392, 7312, 5312, 4112],
  257. // 24 =&gt; 113
  258. [10208, 8000, 5744, 4304],
  259. // 25 =&gt; 117
  260. [10960, 8496, 6032, 4768],
  261. // 26 =&gt; 121
  262. [11744, 9024, 6464, 5024],
  263. // 27 =&gt; 125
  264. [12248, 9544, 6968, 5288],
  265. // 28 =&gt; 129
  266. [13048, 10136, 7288, 5608],
  267. // 29 =&gt; 133
  268. [13880, 10984, 7880, 5960],
  269. // 30 =&gt; 137
  270. [14744, 11640, 8264, 6344],
  271. // 31 =&gt; 141
  272. [15640, 12328, 8920, 6760],
  273. // 32 =&gt; 145
  274. [16568, 13048, 9368, 7208],
  275. // 33 =&gt; 149
  276. [17528, 13800, 9848, 7688],
  277. // 34 =&gt; 153
  278. [18448, 14496, 10288, 7888],
  279. // 35 =&gt; 157
  280. [19472, 15312, 10832, 8432],
  281. // 36 =&gt; 161
  282. [20528, 15936, 11408, 8768],
  283. // 37 =&gt; 165
  284. [21616, 16816, 12016, 9136],
  285. // 38 =&gt; 169
  286. [22496, 17728, 12656, 9776],
  287. // 39 =&gt; 173
  288. [23648, 18672, 13328, 10208],
  289. ] </span>
  290. </dt>
  291. <dd>ISO/IEC 18004:2000 Tables 7-11 - Number of symbol characters and input data capacity for versions 1 to 40</dd>
  292. </dl>
  293. <h4 id="toc-properties">
  294. Properties
  295. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  296. </h4>
  297. <dl class="phpdocumentor-table-of-contents">
  298. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  299. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#property_eccLevel">$eccLevel</a>
  300. <span>
  301. &nbsp;: int </span>
  302. </dt>
  303. <dd>The current ECC level value</dd>
  304. </dl>
  305. <h4 id="toc-methods">
  306. Methods
  307. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  308. </h4>
  309. <dl class="phpdocumentor-table-of-contents">
  310. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  311. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method___construct">__construct()</a>
  312. <span>
  313. &nbsp;: mixed </span>
  314. </dt>
  315. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  316. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method___toString">__toString()</a>
  317. <span>
  318. &nbsp;: string </span>
  319. </dt>
  320. <dd>returns the string representation of the current ECC level</dd>
  321. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  322. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getformatPattern">getformatPattern()</a>
  323. <span>
  324. &nbsp;: int </span>
  325. </dt>
  326. <dd>returns the format pattern for the given $eccLevel and $maskPattern</dd>
  327. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  328. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getLevel">getLevel()</a>
  329. <span>
  330. &nbsp;: int </span>
  331. </dt>
  332. <dd>returns the current ECC level</dd>
  333. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  334. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getMaxBits">getMaxBits()</a>
  335. <span>
  336. &nbsp;: array&lt;string|int, int&gt; </span>
  337. </dt>
  338. <dd>returns an array with the max bit lengths for version 1-40 and the current ECC level</dd>
  339. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  340. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getMaxBitsForVersion">getMaxBitsForVersion()</a>
  341. <span>
  342. &nbsp;: int </span>
  343. </dt>
  344. <dd>Returns the maximum bit length for the given version and current ECC level</dd>
  345. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  346. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getOrdinal">getOrdinal()</a>
  347. <span>
  348. &nbsp;: int </span>
  349. </dt>
  350. <dd>returns the ordinal value of the current ECC level</dd>
  351. </dl>
  352. <section class="phpdocumentor-constants">
  353. <h3 class="phpdocumentor-elements__header" id="constants">
  354. Constants
  355. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  356. </h3>
  357. <article class="phpdocumentor-element -constant -public ">
  358. <h4 class="phpdocumentor-element__name" id="constant_H">
  359. H
  360. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_H" class="headerlink"><i class="fas fa-link"></i></a>
  361. </h4>
  362. <aside class="phpdocumentor-element-found-in">
  363. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  364. :
  365. <span class="phpdocumentor-element-found-in__line">30</span>
  366. </aside>
  367. <code class="phpdocumentor-signature phpdocumentor-code ">
  368. <span class="phpdocumentor-signature__visibility">public</span>
  369. <span class="phpdocumentor-signature__type">int</span>
  370. <span class="phpdocumentor-signature__name">H</span>
  371. = <span class="phpdocumentor-signature__default-value">0b10</span>
  372. </code>
  373. </article>
  374. <article class="phpdocumentor-element -constant -public ">
  375. <h4 class="phpdocumentor-element__name" id="constant_L">
  376. L
  377. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_L" class="headerlink"><i class="fas fa-link"></i></a>
  378. </h4>
  379. <aside class="phpdocumentor-element-found-in">
  380. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  381. :
  382. <span class="phpdocumentor-element-found-in__line">24</span>
  383. </aside>
  384. <code class="phpdocumentor-signature phpdocumentor-code ">
  385. <span class="phpdocumentor-signature__visibility">public</span>
  386. <span class="phpdocumentor-signature__type">int</span>
  387. <span class="phpdocumentor-signature__name">L</span>
  388. = <span class="phpdocumentor-signature__default-value">0b1</span>
  389. </code>
  390. </article>
  391. <article class="phpdocumentor-element -constant -public ">
  392. <h4 class="phpdocumentor-element__name" id="constant_M">
  393. M
  394. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_M" class="headerlink"><i class="fas fa-link"></i></a>
  395. </h4>
  396. <aside class="phpdocumentor-element-found-in">
  397. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  398. :
  399. <span class="phpdocumentor-element-found-in__line">26</span>
  400. </aside>
  401. <code class="phpdocumentor-signature phpdocumentor-code ">
  402. <span class="phpdocumentor-signature__visibility">public</span>
  403. <span class="phpdocumentor-signature__type">int</span>
  404. <span class="phpdocumentor-signature__name">M</span>
  405. = <span class="phpdocumentor-signature__default-value">0b0</span>
  406. </code>
  407. </article>
  408. <article class="phpdocumentor-element -constant -public ">
  409. <h4 class="phpdocumentor-element__name" id="constant_Q">
  410. Q
  411. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_Q" class="headerlink"><i class="fas fa-link"></i></a>
  412. </h4>
  413. <aside class="phpdocumentor-element-found-in">
  414. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  415. :
  416. <span class="phpdocumentor-element-found-in__line">28</span>
  417. </aside>
  418. <code class="phpdocumentor-signature phpdocumentor-code ">
  419. <span class="phpdocumentor-signature__visibility">public</span>
  420. <span class="phpdocumentor-signature__type">int</span>
  421. <span class="phpdocumentor-signature__name">Q</span>
  422. = <span class="phpdocumentor-signature__default-value">0b11</span>
  423. </code>
  424. </article>
  425. <article class="phpdocumentor-element -constant -private ">
  426. <h4 class="phpdocumentor-element__name" id="constant_FORMAT_PATTERN">
  427. FORMAT_PATTERN
  428. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_FORMAT_PATTERN" class="headerlink"><i class="fas fa-link"></i></a>
  429. </h4>
  430. <aside class="phpdocumentor-element-found-in">
  431. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  432. :
  433. <span class="phpdocumentor-element-found-in__line">89</span>
  434. </aside>
  435. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Section 8.9 - Format Information</p>
  436. <code class="phpdocumentor-signature phpdocumentor-code ">
  437. <span class="phpdocumentor-signature__visibility">private</span>
  438. <span class="phpdocumentor-signature__type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  439. <span class="phpdocumentor-signature__name">FORMAT_PATTERN</span>
  440. = <span class="phpdocumentor-signature__default-value">[[
  441. // L
  442. 0b111011111000100,
  443. 0b111001011110011,
  444. 0b111110110101010,
  445. 0b111100010011101,
  446. 0b110011000101111,
  447. 0b110001100011000,
  448. 0b110110001000001,
  449. 0b110100101110110,
  450. ], [
  451. // M
  452. 0b101010000010010,
  453. 0b101000100100101,
  454. 0b101111001111100,
  455. 0b101101101001011,
  456. 0b100010111111001,
  457. 0b100000011001110,
  458. 0b100111110010111,
  459. 0b100101010100000,
  460. ], [
  461. // Q
  462. 0b11010101011111,
  463. 0b11000001101000,
  464. 0b11111100110001,
  465. 0b11101000000110,
  466. 0b10010010110100,
  467. 0b10000110000011,
  468. 0b10111011011010,
  469. 0b10101111101101,
  470. ], [
  471. // H
  472. 0b1011010001001,
  473. 0b1001110111110,
  474. 0b1110011100111,
  475. 0b1100111010000,
  476. 0b11101100010,
  477. 0b1001010101,
  478. 0b110100001100,
  479. 0b100000111011,
  480. ]]</span>
  481. </code>
  482. <section class="phpdocumentor-description"><p>ECC level -&gt; mask pattern</p>
  483. </section>
  484. </article>
  485. <article class="phpdocumentor-element -constant -private ">
  486. <h4 class="phpdocumentor-element__name" id="constant_MAX_BITS">
  487. MAX_BITS
  488. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_MAX_BITS" class="headerlink"><i class="fas fa-link"></i></a>
  489. </h4>
  490. <aside class="phpdocumentor-element-found-in">
  491. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  492. :
  493. <span class="phpdocumentor-element-found-in__line">37</span>
  494. </aside>
  495. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Tables 7-11 - Number of symbol characters and input data capacity for versions 1 to 40</p>
  496. <code class="phpdocumentor-signature phpdocumentor-code ">
  497. <span class="phpdocumentor-signature__visibility">private</span>
  498. <span class="phpdocumentor-signature__type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  499. <span class="phpdocumentor-signature__name">MAX_BITS</span>
  500. = <span class="phpdocumentor-signature__default-value">[
  501. // [ L, M, Q, H] // v =&gt; modules
  502. [0, 0, 0, 0],
  503. // 0 =&gt; will be ignored, index starts at 1
  504. [152, 128, 104, 72],
  505. // 1 =&gt; 21
  506. [272, 224, 176, 128],
  507. // 2 =&gt; 25
  508. [440, 352, 272, 208],
  509. // 3 =&gt; 29
  510. [640, 512, 384, 288],
  511. // 4 =&gt; 33
  512. [864, 688, 496, 368],
  513. // 5 =&gt; 37
  514. [1088, 864, 608, 480],
  515. // 6 =&gt; 41
  516. [1248, 992, 704, 528],
  517. // 7 =&gt; 45
  518. [1552, 1232, 880, 688],
  519. // 8 =&gt; 49
  520. [1856, 1456, 1056, 800],
  521. // 9 =&gt; 53
  522. [2192, 1728, 1232, 976],
  523. // 10 =&gt; 57
  524. [2592, 2032, 1440, 1120],
  525. // 11 =&gt; 61
  526. [2960, 2320, 1648, 1264],
  527. // 12 =&gt; 65
  528. [3424, 2672, 1952, 1440],
  529. // 13 =&gt; 69 NICE!
  530. [3688, 2920, 2088, 1576],
  531. // 14 =&gt; 73
  532. [4184, 3320, 2360, 1784],
  533. // 15 =&gt; 77
  534. [4712, 3624, 2600, 2024],
  535. // 16 =&gt; 81
  536. [5176, 4056, 2936, 2264],
  537. // 17 =&gt; 85
  538. [5768, 4504, 3176, 2504],
  539. // 18 =&gt; 89
  540. [6360, 5016, 3560, 2728],
  541. // 19 =&gt; 93
  542. [6888, 5352, 3880, 3080],
  543. // 20 =&gt; 97
  544. [7456, 5712, 4096, 3248],
  545. // 21 =&gt; 101
  546. [8048, 6256, 4544, 3536],
  547. // 22 =&gt; 105
  548. [8752, 6880, 4912, 3712],
  549. // 23 =&gt; 109
  550. [9392, 7312, 5312, 4112],
  551. // 24 =&gt; 113
  552. [10208, 8000, 5744, 4304],
  553. // 25 =&gt; 117
  554. [10960, 8496, 6032, 4768],
  555. // 26 =&gt; 121
  556. [11744, 9024, 6464, 5024],
  557. // 27 =&gt; 125
  558. [12248, 9544, 6968, 5288],
  559. // 28 =&gt; 129
  560. [13048, 10136, 7288, 5608],
  561. // 29 =&gt; 133
  562. [13880, 10984, 7880, 5960],
  563. // 30 =&gt; 137
  564. [14744, 11640, 8264, 6344],
  565. // 31 =&gt; 141
  566. [15640, 12328, 8920, 6760],
  567. // 32 =&gt; 145
  568. [16568, 13048, 9368, 7208],
  569. // 33 =&gt; 149
  570. [17528, 13800, 9848, 7688],
  571. // 34 =&gt; 153
  572. [18448, 14496, 10288, 7888],
  573. // 35 =&gt; 157
  574. [19472, 15312, 10832, 8432],
  575. // 36 =&gt; 161
  576. [20528, 15936, 11408, 8768],
  577. // 37 =&gt; 165
  578. [21616, 16816, 12016, 9136],
  579. // 38 =&gt; 169
  580. [22496, 17728, 12656, 9776],
  581. // 39 =&gt; 173
  582. [23648, 18672, 13328, 10208],
  583. ]</span>
  584. </code>
  585. </article>
  586. </section>
  587. <section class="phpdocumentor-properties">
  588. <h3 class="phpdocumentor-elements__header" id="properties">
  589. Properties
  590. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  591. </h3>
  592. <article
  593. class="
  594. phpdocumentor-element
  595. -property
  596. -private
  597. "
  598. >
  599. <h4 class="phpdocumentor-element__name" id="property_eccLevel">
  600. $eccLevel
  601. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#property_eccLevel" class="headerlink"><i class="fas fa-link"></i></a>
  602. <span class="phpdocumentor-element__modifiers">
  603. </span>
  604. </h4>
  605. <aside class="phpdocumentor-element-found-in">
  606. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  607. :
  608. <span class="phpdocumentor-element-found-in__line">140</span>
  609. </aside>
  610. <p class="phpdocumentor-summary">The current ECC level value</p>
  611. <code class="phpdocumentor-code phpdocumentor-signature ">
  612. <span class="phpdocumentor-signature__visibility">private</span>
  613. <span class="phpdocumentor-signature__type">int</span>
  614. <span class="phpdocumentor-signature__name">$eccLevel</span>
  615. </code>
  616. <section class="phpdocumentor-description"><p>L: 0b01
  617. M: 0b00
  618. Q: 0b11
  619. H: 0b10</p>
  620. </section>
  621. </article>
  622. </section>
  623. <section class="phpdocumentor-methods">
  624. <h3 class="phpdocumentor-elements__header" id="methods">
  625. Methods
  626. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  627. </h3>
  628. <article
  629. class="phpdocumentor-element
  630. -method
  631. -public
  632. "
  633. >
  634. <h4 class="phpdocumentor-element__name" id="method___construct">
  635. __construct()
  636. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  637. </h4>
  638. <aside class="phpdocumentor-element-found-in">
  639. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  640. :
  641. <span class="phpdocumentor-element-found-in__line">147</span>
  642. </aside>
  643. <code class="phpdocumentor-code phpdocumentor-signature ">
  644. <span class="phpdocumentor-signature__visibility">public</span>
  645. <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">$eccLevel</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  646. <div class="phpdocumentor-label-line">
  647. </div>
  648. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  649. <dl class="phpdocumentor-argument-list">
  650. <dt class="phpdocumentor-argument-list__entry">
  651. <span class="phpdocumentor-signature__argument__name">$eccLevel</span>
  652. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  653. </dt>
  654. <dd class="phpdocumentor-argument-list__definition">
  655. <section class="phpdocumentor-description"><p>containing the two bits encoding a QR Code's error correction level</p>
  656. </section>
  657. </dd>
  658. </dl>
  659. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  660. Tags
  661. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method___construct#tags" class="headerlink"><i class="fas fa-link"></i></a>
  662. </h5>
  663. <dl class="phpdocumentor-tag-list">
  664. <dt class="phpdocumentor-tag-list__entry">
  665. <span class="phpdocumentor-tag__name">throws</span>
  666. </dt>
  667. <dd class="phpdocumentor-tag-list__definition">
  668. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  669. </dd>
  670. </dl>
  671. </article>
  672. <article
  673. class="phpdocumentor-element
  674. -method
  675. -public
  676. "
  677. >
  678. <h4 class="phpdocumentor-element__name" id="method___toString">
  679. __toString()
  680. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method___toString" class="headerlink"><i class="fas fa-link"></i></a>
  681. </h4>
  682. <aside class="phpdocumentor-element-found-in">
  683. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  684. :
  685. <span class="phpdocumentor-element-found-in__line">159</span>
  686. </aside>
  687. <p class="phpdocumentor-summary">returns the string representation of the current ECC level</p>
  688. <code class="phpdocumentor-code phpdocumentor-signature ">
  689. <span class="phpdocumentor-signature__visibility">public</span>
  690. <span class="phpdocumentor-signature__name">__toString</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  691. <div class="phpdocumentor-label-line">
  692. </div>
  693. <section>
  694. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  695. <span class="phpdocumentor-signature__response_type">string</span>
  696. </section>
  697. </article>
  698. <article
  699. class="phpdocumentor-element
  700. -method
  701. -public
  702. "
  703. >
  704. <h4 class="phpdocumentor-element__name" id="method_getformatPattern">
  705. getformatPattern()
  706. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getformatPattern" class="headerlink"><i class="fas fa-link"></i></a>
  707. </h4>
  708. <aside class="phpdocumentor-element-found-in">
  709. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  710. :
  711. <span class="phpdocumentor-element-found-in__line">196</span>
  712. </aside>
  713. <p class="phpdocumentor-summary">returns the format pattern for the given $eccLevel and $maskPattern</p>
  714. <code class="phpdocumentor-code phpdocumentor-signature ">
  715. <span class="phpdocumentor-signature__visibility">public</span>
  716. <span class="phpdocumentor-signature__name">getformatPattern</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-MaskPattern.html"><abbr title="\chillerlan\QRCode\Common\MaskPattern">MaskPattern</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$maskPattern</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  717. <div class="phpdocumentor-label-line">
  718. </div>
  719. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  720. <dl class="phpdocumentor-argument-list">
  721. <dt class="phpdocumentor-argument-list__entry">
  722. <span class="phpdocumentor-signature__argument__name">$maskPattern</span>
  723. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-MaskPattern.html"><abbr title="\chillerlan\QRCode\Common\MaskPattern">MaskPattern</abbr></a></span>
  724. </dt>
  725. <dd class="phpdocumentor-argument-list__definition">
  726. </dd>
  727. </dl>
  728. <section>
  729. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  730. <span class="phpdocumentor-signature__response_type">int</span>
  731. </section>
  732. </article>
  733. <article
  734. class="phpdocumentor-element
  735. -method
  736. -public
  737. "
  738. >
  739. <h4 class="phpdocumentor-element__name" id="method_getLevel">
  740. getLevel()
  741. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getLevel" class="headerlink"><i class="fas fa-link"></i></a>
  742. </h4>
  743. <aside class="phpdocumentor-element-found-in">
  744. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  745. :
  746. <span class="phpdocumentor-element-found-in__line">171</span>
  747. </aside>
  748. <p class="phpdocumentor-summary">returns the current ECC level</p>
  749. <code class="phpdocumentor-code phpdocumentor-signature ">
  750. <span class="phpdocumentor-signature__visibility">public</span>
  751. <span class="phpdocumentor-signature__name">getLevel</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  752. <div class="phpdocumentor-label-line">
  753. </div>
  754. <section>
  755. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  756. <span class="phpdocumentor-signature__response_type">int</span>
  757. </section>
  758. </article>
  759. <article
  760. class="phpdocumentor-element
  761. -method
  762. -public
  763. "
  764. >
  765. <h4 class="phpdocumentor-element__name" id="method_getMaxBits">
  766. getMaxBits()
  767. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getMaxBits" class="headerlink"><i class="fas fa-link"></i></a>
  768. </h4>
  769. <aside class="phpdocumentor-element-found-in">
  770. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  771. :
  772. <span class="phpdocumentor-element-found-in__line">205</span>
  773. </aside>
  774. <p class="phpdocumentor-summary">returns an array with the max bit lengths for version 1-40 and the current ECC level</p>
  775. <code class="phpdocumentor-code phpdocumentor-signature ">
  776. <span class="phpdocumentor-signature__visibility">public</span>
  777. <span class="phpdocumentor-signature__name">getMaxBits</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, int&gt;</span></code>
  778. <div class="phpdocumentor-label-line">
  779. </div>
  780. <section>
  781. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  782. <span class="phpdocumentor-signature__response_type">array&lt;string|int, int&gt;</span>
  783. </section>
  784. </article>
  785. <article
  786. class="phpdocumentor-element
  787. -method
  788. -public
  789. "
  790. >
  791. <h4 class="phpdocumentor-element__name" id="method_getMaxBitsForVersion">
  792. getMaxBitsForVersion()
  793. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getMaxBitsForVersion" class="headerlink"><i class="fas fa-link"></i></a>
  794. </h4>
  795. <aside class="phpdocumentor-element-found-in">
  796. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  797. :
  798. <span class="phpdocumentor-element-found-in__line">216</span>
  799. </aside>
  800. <p class="phpdocumentor-summary">Returns the maximum bit length for the given version and current ECC level</p>
  801. <code class="phpdocumentor-code phpdocumentor-signature ">
  802. <span class="phpdocumentor-signature__visibility">public</span>
  803. <span class="phpdocumentor-signature__name">getMaxBitsForVersion</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  804. <div class="phpdocumentor-label-line">
  805. </div>
  806. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  807. <dl class="phpdocumentor-argument-list">
  808. <dt class="phpdocumentor-argument-list__entry">
  809. <span class="phpdocumentor-signature__argument__name">$version</span>
  810. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  811. </dt>
  812. <dd class="phpdocumentor-argument-list__definition">
  813. </dd>
  814. </dl>
  815. <section>
  816. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  817. <span class="phpdocumentor-signature__response_type">int</span>
  818. </section>
  819. </article>
  820. <article
  821. class="phpdocumentor-element
  822. -method
  823. -public
  824. "
  825. >
  826. <h4 class="phpdocumentor-element__name" id="method_getOrdinal">
  827. getOrdinal()
  828. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getOrdinal" class="headerlink"><i class="fas fa-link"></i></a>
  829. </h4>
  830. <aside class="phpdocumentor-element-found-in">
  831. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/EccLevel.php"><a href="files/src-common-ecclevel.html"><abbr title="src/Common/EccLevel.php">EccLevel.php</abbr></a></abbr>
  832. :
  833. <span class="phpdocumentor-element-found-in__line">184</span>
  834. </aside>
  835. <p class="phpdocumentor-summary">returns the ordinal value of the current ECC level</p>
  836. <code class="phpdocumentor-code phpdocumentor-signature ">
  837. <span class="phpdocumentor-signature__visibility">public</span>
  838. <span class="phpdocumentor-signature__name">getOrdinal</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  839. <div class="phpdocumentor-label-line">
  840. </div>
  841. <section class="phpdocumentor-description"><p>references to the keys of the following tables:</p>
  842. </section>
  843. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  844. Tags
  845. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getOrdinal#tags" class="headerlink"><i class="fas fa-link"></i></a>
  846. </h5>
  847. <dl class="phpdocumentor-tag-list">
  848. <dt class="phpdocumentor-tag-list__entry">
  849. <span class="phpdocumentor-tag__name">see</span>
  850. </dt>
  851. <dd class="phpdocumentor-tag-list__definition">
  852. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_MAX_BITS"><abbr title="\chillerlan\QRCode\Common\EccLevel::MAX_BITS">EccLevel::MAX_BITS</abbr></a></span>
  853. </dd>
  854. <dt class="phpdocumentor-tag-list__entry">
  855. <span class="phpdocumentor-tag__name">see</span>
  856. </dt>
  857. <dd class="phpdocumentor-tag-list__definition">
  858. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_FORMAT_PATTERN"><abbr title="\chillerlan\QRCode\Common\EccLevel::FORMAT_PATTERN">EccLevel::FORMAT_PATTERN</abbr></a></span>
  859. </dd>
  860. <dt class="phpdocumentor-tag-list__entry">
  861. <span class="phpdocumentor-tag__name">see</span>
  862. </dt>
  863. <dd class="phpdocumentor-tag-list__definition">
  864. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Common-Version.html#constant_RSBLOCKS"><abbr title="\chillerlan\QRCode\Common\Version::RSBLOCKS">Version::RSBLOCKS</abbr></a></span>
  865. </dd>
  866. </dl>
  867. <section>
  868. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  869. <span class="phpdocumentor-signature__response_type">int</span>
  870. </section>
  871. </article>
  872. </section>
  873. <div class="phpdocumentor-modal" id="source-view">
  874. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  875. <div class="phpdocumentor-modal-container">
  876. <div class="phpdocumentor-modal-content">
  877. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Common/EccLevel.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  878. </div>
  879. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  880. </div>
  881. </div>
  882. <script type="text/javascript">
  883. (function () {
  884. function loadExternalCodeSnippet(el, url, line) {
  885. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  886. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  887. const language = 'php';
  888. const code = document.createElement('code');
  889. code.className = 'language-' + language;
  890. pre.textContent = '';
  891. pre.setAttribute('data-line', line)
  892. code.textContent = 'Loading…';
  893. pre.appendChild(code);
  894. var xhr = new XMLHttpRequest();
  895. xhr.open('GET', src, true);
  896. xhr.onreadystatechange = function () {
  897. if (xhr.readyState !== 4) {
  898. return;
  899. }
  900. if (xhr.status < 400 && xhr.responseText) {
  901. code.textContent = xhr.responseText;
  902. Prism.highlightElement(code);
  903. return;
  904. }
  905. if (xhr.status === 404) {
  906. code.textContent = '✖ Error: File could not be found';
  907. return;
  908. }
  909. if (xhr.status >= 400) {
  910. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  911. return;
  912. }
  913. code.textContent = '✖ Error: An unknown error occurred';
  914. };
  915. xhr.send(null);
  916. });
  917. }
  918. const modalButtons = document.querySelectorAll("[data-modal]");
  919. const openedAsLocalFile = window.location.protocol === 'file:';
  920. if (modalButtons.length > 0 && openedAsLocalFile) {
  921. console.warn(
  922. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  923. 'browsers block XHR requests when a page is opened this way'
  924. );
  925. }
  926. modalButtons.forEach(function (trigger) {
  927. if (openedAsLocalFile) {
  928. trigger.setAttribute("hidden", "hidden");
  929. }
  930. trigger.addEventListener("click", function (event) {
  931. event.preventDefault();
  932. const modal = document.getElementById(trigger.dataset.modal);
  933. if (!modal) {
  934. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  935. return;
  936. }
  937. modal.classList.add("phpdocumentor-modal__open");
  938. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  939. const exits = modal.querySelectorAll("[data-exit-button]");
  940. exits.forEach(function (exit) {
  941. exit.addEventListener("click", function (event) {
  942. event.preventDefault();
  943. modal.classList.remove("phpdocumentor-modal__open");
  944. });
  945. });
  946. });
  947. });
  948. })();
  949. </script>
  950. </article>
  951. </section>
  952. <section class="phpdocumentor-on-this-page__sidebar">
  953. <section class="phpdocumentor-on-this-page__content">
  954. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  955. <ul class="phpdocumentor-list -clean">
  956. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  957. <li>
  958. <ul class="phpdocumentor-list -clean">
  959. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#toc-constants">Constants</a></li>
  960. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#toc-properties">Properties</a></li>
  961. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#toc-methods">Methods</a></li>
  962. </ul>
  963. </li>
  964. <li class="phpdocumentor-on-this-page-section__title">Constants</li>
  965. <li>
  966. <ul class="phpdocumentor-list -clean">
  967. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_H">H</a></li>
  968. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_L">L</a></li>
  969. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_M">M</a></li>
  970. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_Q">Q</a></li>
  971. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_FORMAT_PATTERN">FORMAT_PATTERN</a></li>
  972. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#constant_MAX_BITS">MAX_BITS</a></li>
  973. </ul>
  974. </li>
  975. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  976. <li>
  977. <ul class="phpdocumentor-list -clean">
  978. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#property_eccLevel">$eccLevel<a href="classes/chillerlan-QRCode-Common-EccLevel.html"></li>
  979. </ul>
  980. </li>
  981. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  982. <li>
  983. <ul class="phpdocumentor-list -clean">
  984. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#method___construct">__construct()</a></li>
  985. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#method___toString">__toString()</a></li>
  986. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getformatPattern">getformatPattern()</a></li>
  987. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getLevel">getLevel()</a></li>
  988. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getMaxBits">getMaxBits()</a></li>
  989. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getMaxBitsForVersion">getMaxBitsForVersion()</a></li>
  990. <li><a href="classes/chillerlan-QRCode-Common-EccLevel.html#method_getOrdinal">getOrdinal()</a></li>
  991. </ul>
  992. </li>
  993. </ul>
  994. </section>
  995. </section>
  996. </div>
  997. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  998. <section class="phpdocumentor-search-results__dialog">
  999. <header class="phpdocumentor-search-results__header">
  1000. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1001. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1002. </header>
  1003. <section class="phpdocumentor-search-results__body">
  1004. <ul class="phpdocumentor-search-results__entries"></ul>
  1005. </section>
  1006. </section>
  1007. </section>
  1008. </div>
  1009. <a href="classes/chillerlan-QRCode-Common-EccLevel.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1010. </main>
  1011. <script>
  1012. cssVars({});
  1013. </script>
  1014. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1015. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1016. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1017. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1018. </body>
  1019. </html>