chillerlan-QRCode-Common-EccLevel.html 52 KB

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