chillerlan-QRCode-Common-EccLevel.html 52 KB

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