chillerlan-QRCode-Common-EccLevel.html 51 KB

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