chillerlan-QRCode-Common-MaskPattern.html 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423
  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=Source+Sans+Pro:wght@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/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. </ul>
  44. </nav>
  45. </header>
  46. <main class="phpdocumentor">
  47. <div class="phpdocumentor-section">
  48. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  49. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  50. Menu
  51. </label>
  52. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  53. <section class="phpdocumentor-sidebar__category">
  54. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  55. <h4 class="phpdocumentor-sidebar__root-namespace">
  56. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  57. </h4>
  58. <ul class="phpdocumentor-list">
  59. <li>
  60. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  61. </li>
  62. <li>
  63. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  64. </li>
  65. </ul>
  66. </section>
  67. <section class="phpdocumentor-sidebar__category">
  68. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  69. <h4 class="phpdocumentor-sidebar__root-namespace">
  70. <a href="packages/Application.html" class="">Application</a>
  71. </h4>
  72. </section>
  73. <section class="phpdocumentor-sidebar__category">
  74. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  75. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  76. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  78. </section>
  79. <section class="phpdocumentor-sidebar__category">
  80. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  81. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  82. </section>
  83. </aside>
  84. <div class="phpdocumentor-column -eight phpdocumentor-content">
  85. <ul class="phpdocumentor-breadcrumbs">
  86. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  87. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  88. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-common.html">Common</a></li>
  89. </ul>
  90. <article class="phpdocumentor-element -class">
  91. <h2 class="phpdocumentor-content__title">
  92. MaskPattern
  93. <div class="phpdocumentor-element__package">
  94. in package
  95. <ul class="phpdocumentor-breadcrumbs">
  96. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  97. </ul>
  98. </div>
  99. </h2>
  100. <aside class="phpdocumentor-element-found-in">
  101. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  102. :
  103. <span class="phpdocumentor-element-found-in__line">26</span>
  104. </aside>
  105. <p class="phpdocumentor-summary">ISO/IEC 18004:2000 Section 8.8.1
  106. ISO/IEC 18004:2000 Section 8.8.2 - Evaluation of masking results</p>
  107. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  108. Tags
  109. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  110. </h5>
  111. <dl class="phpdocumentor-tag-list">
  112. <dt class="phpdocumentor-tag-list__entry">
  113. <span class="phpdocumentor-tag__name">see</span>
  114. </dt>
  115. <dd class="phpdocumentor-tag-list__definition">
  116. <span class="phpdocumentor-tag-link"><a href="http://www.thonky.com/qr-code-tutorial/data-masking"><abbr title="http://www.thonky.com/qr-code-tutorial/data-masking">http://www.thonky.com/qr-code-tutorial/data-masking</abbr></a></span>
  117. </dd>
  118. <dt class="phpdocumentor-tag-list__entry">
  119. <span class="phpdocumentor-tag__name">see</span>
  120. </dt>
  121. <dd class="phpdocumentor-tag-list__definition">
  122. <span class="phpdocumentor-tag-link"><a href="https://github.com/zxing/zxing/blob/e9e2bd280bcaeabd59d0f955798384fe6c018a6c/core/src/main/java/com/google/zxing/qrcode/encoder/MaskUtil.java"><abbr title="https://github.com/zxing/zxing/blob/e9e2bd280bcaeabd59d0f955798384fe6c018a6c/core/src/main/java/com/google/zxing/qrcode/encoder/MaskUtil.java">https://github.com/zxing/zxing/blob/e9e2bd280bcaeabd59d0f955798384fe6c018a6c/core/src/main/java/com/google/zxing/qrcode/encoder/MaskUtil.java</abbr></a></span>
  123. </dd>
  124. </dl>
  125. <h3 id="toc">
  126. Table of Contents
  127. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  128. </h3>
  129. <dl class="phpdocumentor-table-of-contents">
  130. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  131. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_AUTO">AUTO</a>
  132. <span>
  133. &nbsp;= -1 </span>
  134. </dt>
  135. <dd></dd>
  136. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  137. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_000">PATTERN_000</a>
  138. <span>
  139. &nbsp;= 0b0 </span>
  140. </dt>
  141. <dd></dd>
  142. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  143. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_001">PATTERN_001</a>
  144. <span>
  145. &nbsp;= 0b1 </span>
  146. </dt>
  147. <dd></dd>
  148. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  149. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_010">PATTERN_010</a>
  150. <span>
  151. &nbsp;= 0b10 </span>
  152. </dt>
  153. <dd></dd>
  154. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  155. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_011">PATTERN_011</a>
  156. <span>
  157. &nbsp;= 0b11 </span>
  158. </dt>
  159. <dd></dd>
  160. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  161. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_100">PATTERN_100</a>
  162. <span>
  163. &nbsp;= 0b100 </span>
  164. </dt>
  165. <dd></dd>
  166. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  167. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_101">PATTERN_101</a>
  168. <span>
  169. &nbsp;= 0b101 </span>
  170. </dt>
  171. <dd></dd>
  172. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  173. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_110">PATTERN_110</a>
  174. <span>
  175. &nbsp;= 0b110 </span>
  176. </dt>
  177. <dd></dd>
  178. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  179. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_111">PATTERN_111</a>
  180. <span>
  181. &nbsp;= 0b111 </span>
  182. </dt>
  183. <dd></dd>
  184. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  185. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERNS">PATTERNS</a>
  186. <span>
  187. &nbsp;= [self::PATTERN_000, self::PATTERN_001, self::PATTERN_010, self::PATTERN_011, self::PATTERN_100, self::PATTERN_101, self::PATTERN_110, self::PATTERN_111] </span>
  188. </dt>
  189. <dd></dd>
  190. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  191. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#property_maskPattern">$maskPattern</a>
  192. <span>
  193. &nbsp;: int </span>
  194. </dt>
  195. <dd>The current mask pattern value (0-7)</dd>
  196. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  197. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method___construct">__construct()</a>
  198. <span>
  199. &nbsp;: mixed </span>
  200. </dt>
  201. <dd>MaskPattern constructor.</dd>
  202. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  203. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_getBestPattern">getBestPattern()</a>
  204. <span>
  205. &nbsp;: self </span>
  206. </dt>
  207. <dd>Evaluates the matrix of the given data interface and returns a new mask pattern instance for the best result</dd>
  208. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  209. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_getMask">getMask()</a>
  210. <span>
  211. &nbsp;: <abbr title="\Closure">Closure</abbr> </span>
  212. </dt>
  213. <dd>Returns a closure that applies the mask for the chosen mask pattern.</dd>
  214. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  215. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_getPattern">getPattern()</a>
  216. <span>
  217. &nbsp;: int </span>
  218. </dt>
  219. <dd>Returns the current mask pattern</dd>
  220. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  221. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_testRule1">testRule1()</a>
  222. <span>
  223. &nbsp;: int </span>
  224. </dt>
  225. <dd>Apply mask penalty rule 1 and return the penalty. Find repetitive cells with the same color and
  226. give penalty to them. Example: 00000 or 11111.</dd>
  227. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  228. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_testRule2">testRule2()</a>
  229. <span>
  230. &nbsp;: int </span>
  231. </dt>
  232. <dd>Apply mask penalty rule 2 and return the penalty. Find 2x2 blocks with the same color and give
  233. penalty to them. This is actually equivalent to the spec&#039;s rule, which is to find MxN blocks and give a
  234. penalty proportional to (M-1)x(N-1), because this is the number of 2x2 blocks inside such a block.</dd>
  235. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  236. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_testRule3">testRule3()</a>
  237. <span>
  238. &nbsp;: int </span>
  239. </dt>
  240. <dd>Apply mask penalty rule 3 and return the penalty. Find consecutive runs of 1:1:3:1:1:4
  241. starting with black, or 4:1:1:3:1:1 starting with white, and give penalty to them. If we
  242. find patterns like 000010111010000, we give penalty once.</dd>
  243. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  244. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_testRule4">testRule4()</a>
  245. <span>
  246. &nbsp;: int </span>
  247. </dt>
  248. <dd>Apply mask penalty rule 4 and return the penalty. Calculate the ratio of dark cells and give
  249. penalty if the ratio is far from 50%. It gives 10 penalty for 5% distance.</dd>
  250. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  251. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_applyRule1">applyRule1()</a>
  252. <span>
  253. &nbsp;: int </span>
  254. </dt>
  255. <dd></dd>
  256. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  257. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_isWhiteHorizontal">isWhiteHorizontal()</a>
  258. <span>
  259. &nbsp;: bool </span>
  260. </dt>
  261. <dd></dd>
  262. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  263. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_isWhiteVertical">isWhiteVertical()</a>
  264. <span>
  265. &nbsp;: bool </span>
  266. </dt>
  267. <dd></dd>
  268. </dl>
  269. <section class="phpdocumentor-constants">
  270. <h3 class="phpdocumentor-elements__header" id="constants">
  271. Constants
  272. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  273. </h3>
  274. <article class="phpdocumentor-element -constant -public ">
  275. <h4 class="phpdocumentor-element__name" id="constant_AUTO">
  276. AUTO
  277. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_AUTO" class="headerlink"><i class="fas fa-link"></i></a>
  278. </h4>
  279. <aside class="phpdocumentor-element-found-in">
  280. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  281. :
  282. <span class="phpdocumentor-element-found-in__line">33</span>
  283. </aside>
  284. <code class="phpdocumentor-signature phpdocumentor-code ">
  285. <span class="phpdocumentor-signature__visibility">public</span>
  286. <span class="phpdocumentor-signature__type">int</span>
  287. <span class="phpdocumentor-signature__name">AUTO</span>
  288. = <span class="phpdocumentor-signature__default-value">-1</span>
  289. </code>
  290. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  291. Tags
  292. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  293. </h5>
  294. <dl class="phpdocumentor-tag-list">
  295. <dt class="phpdocumentor-tag-list__entry">
  296. <span class="phpdocumentor-tag__name">see</span>
  297. </dt>
  298. <dd class="phpdocumentor-tag-list__definition">
  299. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QROptionsTrait.html#property_maskPattern"><abbr title="\chillerlan\QRCode\QROptionsTrait::$maskPattern">QROptionsTrait::$maskPattern</abbr></a></span>
  300. </dd>
  301. </dl>
  302. </article>
  303. <article class="phpdocumentor-element -constant -public ">
  304. <h4 class="phpdocumentor-element__name" id="constant_PATTERN_000">
  305. PATTERN_000
  306. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_000" class="headerlink"><i class="fas fa-link"></i></a>
  307. </h4>
  308. <aside class="phpdocumentor-element-found-in">
  309. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  310. :
  311. <span class="phpdocumentor-element-found-in__line">35</span>
  312. </aside>
  313. <code class="phpdocumentor-signature phpdocumentor-code ">
  314. <span class="phpdocumentor-signature__visibility">public</span>
  315. <span class="phpdocumentor-signature__type">mixed</span>
  316. <span class="phpdocumentor-signature__name">PATTERN_000</span>
  317. = <span class="phpdocumentor-signature__default-value">0b0</span>
  318. </code>
  319. <section class="phpdocumentor-description"></section>
  320. <section class="phpdocumentor-description"></section>
  321. </article>
  322. <article class="phpdocumentor-element -constant -public ">
  323. <h4 class="phpdocumentor-element__name" id="constant_PATTERN_001">
  324. PATTERN_001
  325. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_001" class="headerlink"><i class="fas fa-link"></i></a>
  326. </h4>
  327. <aside class="phpdocumentor-element-found-in">
  328. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  329. :
  330. <span class="phpdocumentor-element-found-in__line">36</span>
  331. </aside>
  332. <code class="phpdocumentor-signature phpdocumentor-code ">
  333. <span class="phpdocumentor-signature__visibility">public</span>
  334. <span class="phpdocumentor-signature__type">mixed</span>
  335. <span class="phpdocumentor-signature__name">PATTERN_001</span>
  336. = <span class="phpdocumentor-signature__default-value">0b1</span>
  337. </code>
  338. <section class="phpdocumentor-description"></section>
  339. <section class="phpdocumentor-description"></section>
  340. </article>
  341. <article class="phpdocumentor-element -constant -public ">
  342. <h4 class="phpdocumentor-element__name" id="constant_PATTERN_010">
  343. PATTERN_010
  344. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_010" class="headerlink"><i class="fas fa-link"></i></a>
  345. </h4>
  346. <aside class="phpdocumentor-element-found-in">
  347. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  348. :
  349. <span class="phpdocumentor-element-found-in__line">37</span>
  350. </aside>
  351. <code class="phpdocumentor-signature phpdocumentor-code ">
  352. <span class="phpdocumentor-signature__visibility">public</span>
  353. <span class="phpdocumentor-signature__type">mixed</span>
  354. <span class="phpdocumentor-signature__name">PATTERN_010</span>
  355. = <span class="phpdocumentor-signature__default-value">0b10</span>
  356. </code>
  357. <section class="phpdocumentor-description"></section>
  358. <section class="phpdocumentor-description"></section>
  359. </article>
  360. <article class="phpdocumentor-element -constant -public ">
  361. <h4 class="phpdocumentor-element__name" id="constant_PATTERN_011">
  362. PATTERN_011
  363. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_011" class="headerlink"><i class="fas fa-link"></i></a>
  364. </h4>
  365. <aside class="phpdocumentor-element-found-in">
  366. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  367. :
  368. <span class="phpdocumentor-element-found-in__line">38</span>
  369. </aside>
  370. <code class="phpdocumentor-signature phpdocumentor-code ">
  371. <span class="phpdocumentor-signature__visibility">public</span>
  372. <span class="phpdocumentor-signature__type">mixed</span>
  373. <span class="phpdocumentor-signature__name">PATTERN_011</span>
  374. = <span class="phpdocumentor-signature__default-value">0b11</span>
  375. </code>
  376. <section class="phpdocumentor-description"></section>
  377. <section class="phpdocumentor-description"></section>
  378. </article>
  379. <article class="phpdocumentor-element -constant -public ">
  380. <h4 class="phpdocumentor-element__name" id="constant_PATTERN_100">
  381. PATTERN_100
  382. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_100" class="headerlink"><i class="fas fa-link"></i></a>
  383. </h4>
  384. <aside class="phpdocumentor-element-found-in">
  385. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  386. :
  387. <span class="phpdocumentor-element-found-in__line">39</span>
  388. </aside>
  389. <code class="phpdocumentor-signature phpdocumentor-code ">
  390. <span class="phpdocumentor-signature__visibility">public</span>
  391. <span class="phpdocumentor-signature__type">mixed</span>
  392. <span class="phpdocumentor-signature__name">PATTERN_100</span>
  393. = <span class="phpdocumentor-signature__default-value">0b100</span>
  394. </code>
  395. <section class="phpdocumentor-description"></section>
  396. <section class="phpdocumentor-description"></section>
  397. </article>
  398. <article class="phpdocumentor-element -constant -public ">
  399. <h4 class="phpdocumentor-element__name" id="constant_PATTERN_101">
  400. PATTERN_101
  401. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_101" 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/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  405. :
  406. <span class="phpdocumentor-element-found-in__line">40</span>
  407. </aside>
  408. <code class="phpdocumentor-signature phpdocumentor-code ">
  409. <span class="phpdocumentor-signature__visibility">public</span>
  410. <span class="phpdocumentor-signature__type">mixed</span>
  411. <span class="phpdocumentor-signature__name">PATTERN_101</span>
  412. = <span class="phpdocumentor-signature__default-value">0b101</span>
  413. </code>
  414. <section class="phpdocumentor-description"></section>
  415. <section class="phpdocumentor-description"></section>
  416. </article>
  417. <article class="phpdocumentor-element -constant -public ">
  418. <h4 class="phpdocumentor-element__name" id="constant_PATTERN_110">
  419. PATTERN_110
  420. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_110" class="headerlink"><i class="fas fa-link"></i></a>
  421. </h4>
  422. <aside class="phpdocumentor-element-found-in">
  423. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  424. :
  425. <span class="phpdocumentor-element-found-in__line">41</span>
  426. </aside>
  427. <code class="phpdocumentor-signature phpdocumentor-code ">
  428. <span class="phpdocumentor-signature__visibility">public</span>
  429. <span class="phpdocumentor-signature__type">mixed</span>
  430. <span class="phpdocumentor-signature__name">PATTERN_110</span>
  431. = <span class="phpdocumentor-signature__default-value">0b110</span>
  432. </code>
  433. <section class="phpdocumentor-description"></section>
  434. <section class="phpdocumentor-description"></section>
  435. </article>
  436. <article class="phpdocumentor-element -constant -public ">
  437. <h4 class="phpdocumentor-element__name" id="constant_PATTERN_111">
  438. PATTERN_111
  439. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERN_111" class="headerlink"><i class="fas fa-link"></i></a>
  440. </h4>
  441. <aside class="phpdocumentor-element-found-in">
  442. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  443. :
  444. <span class="phpdocumentor-element-found-in__line">42</span>
  445. </aside>
  446. <code class="phpdocumentor-signature phpdocumentor-code ">
  447. <span class="phpdocumentor-signature__visibility">public</span>
  448. <span class="phpdocumentor-signature__type">mixed</span>
  449. <span class="phpdocumentor-signature__name">PATTERN_111</span>
  450. = <span class="phpdocumentor-signature__default-value">0b111</span>
  451. </code>
  452. <section class="phpdocumentor-description"></section>
  453. <section class="phpdocumentor-description"></section>
  454. </article>
  455. <article class="phpdocumentor-element -constant -public ">
  456. <h4 class="phpdocumentor-element__name" id="constant_PATTERNS">
  457. PATTERNS
  458. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#constant_PATTERNS" class="headerlink"><i class="fas fa-link"></i></a>
  459. </h4>
  460. <aside class="phpdocumentor-element-found-in">
  461. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  462. :
  463. <span class="phpdocumentor-element-found-in__line">47</span>
  464. </aside>
  465. <code class="phpdocumentor-signature phpdocumentor-code ">
  466. <span class="phpdocumentor-signature__visibility">public</span>
  467. <span class="phpdocumentor-signature__type">array&lt;string|int, int&gt;</span>
  468. <span class="phpdocumentor-signature__name">PATTERNS</span>
  469. = <span class="phpdocumentor-signature__default-value">[self::PATTERN_000, self::PATTERN_001, self::PATTERN_010, self::PATTERN_011, self::PATTERN_100, self::PATTERN_101, self::PATTERN_110, self::PATTERN_111]</span>
  470. </code>
  471. </article>
  472. </section>
  473. <section class="phpdocumentor-properties">
  474. <h3 class="phpdocumentor-elements__header" id="properties">
  475. Properties
  476. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  477. </h3>
  478. <article
  479. class="
  480. phpdocumentor-element
  481. -property
  482. -private
  483. "
  484. >
  485. <h4 class="phpdocumentor-element__name" id="property_maskPattern">
  486. $maskPattern
  487. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#property_maskPattern" class="headerlink"><i class="fas fa-link"></i></a>
  488. <span class="phpdocumentor-element__modifiers">
  489. </span>
  490. </h4>
  491. <aside class="phpdocumentor-element-found-in">
  492. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  493. :
  494. <span class="phpdocumentor-element-found-in__line">61</span>
  495. </aside>
  496. <p class="phpdocumentor-summary">The current mask pattern value (0-7)</p>
  497. <code class="phpdocumentor-code phpdocumentor-signature ">
  498. <span class="phpdocumentor-signature__visibility">private</span>
  499. <span class="phpdocumentor-signature__type">int</span>
  500. <span class="phpdocumentor-signature__name">$maskPattern</span>
  501. </code>
  502. <section class="phpdocumentor-description"></section>
  503. </article>
  504. </section>
  505. <section class="phpdocumentor-methods">
  506. <h3 class="phpdocumentor-elements__header" id="methods">
  507. Methods
  508. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  509. </h3>
  510. <article
  511. class="phpdocumentor-element
  512. -method
  513. -public
  514. "
  515. >
  516. <h4 class="phpdocumentor-element__name" id="method___construct">
  517. __construct()
  518. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  519. </h4>
  520. <aside class="phpdocumentor-element-found-in">
  521. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  522. :
  523. <span class="phpdocumentor-element-found-in__line">68</span>
  524. </aside>
  525. <p class="phpdocumentor-summary">MaskPattern constructor.</p>
  526. <code class="phpdocumentor-code phpdocumentor-signature ">
  527. <span class="phpdocumentor-signature__visibility">public</span>
  528. <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">$maskPattern</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  529. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  530. <dl class="phpdocumentor-argument-list">
  531. <dt class="phpdocumentor-argument-list__entry">
  532. <span class="phpdocumentor-signature__argument__name">$maskPattern</span>
  533. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  534. </dt>
  535. <dd class="phpdocumentor-argument-list__definition">
  536. <section class="phpdocumentor-description"></section>
  537. </dd>
  538. </dl>
  539. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  540. Tags
  541. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  542. </h5>
  543. <dl class="phpdocumentor-tag-list">
  544. <dt class="phpdocumentor-tag-list__entry">
  545. <span class="phpdocumentor-tag__name">throws</span>
  546. </dt>
  547. <dd class="phpdocumentor-tag-list__definition">
  548. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  549. </dd>
  550. </dl>
  551. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  552. <span class="phpdocumentor-signature__response_type">mixed</span>
  553. &mdash;
  554. </article>
  555. <article
  556. class="phpdocumentor-element
  557. -method
  558. -public
  559. -static "
  560. >
  561. <h4 class="phpdocumentor-element__name" id="method_getBestPattern">
  562. getBestPattern()
  563. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_getBestPattern" class="headerlink"><i class="fas fa-link"></i></a>
  564. </h4>
  565. <aside class="phpdocumentor-element-found-in">
  566. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  567. :
  568. <span class="phpdocumentor-element-found-in__line">115</span>
  569. </aside>
  570. <p class="phpdocumentor-summary">Evaluates the matrix of the given data interface and returns a new mask pattern instance for the best result</p>
  571. <code class="phpdocumentor-code phpdocumentor-signature ">
  572. <span class="phpdocumentor-signature__visibility">public</span>
  573. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">getBestPattern</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$QRMatrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  574. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  575. <dl class="phpdocumentor-argument-list">
  576. <dt class="phpdocumentor-argument-list__entry">
  577. <span class="phpdocumentor-signature__argument__name">$QRMatrix</span>
  578. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  579. </dt>
  580. <dd class="phpdocumentor-argument-list__definition">
  581. <section class="phpdocumentor-description"></section>
  582. </dd>
  583. </dl>
  584. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  585. <span class="phpdocumentor-signature__response_type">self</span>
  586. &mdash;
  587. </article>
  588. <article
  589. class="phpdocumentor-element
  590. -method
  591. -public
  592. "
  593. >
  594. <h4 class="phpdocumentor-element__name" id="method_getMask">
  595. getMask()
  596. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_getMask" class="headerlink"><i class="fas fa-link"></i></a>
  597. </h4>
  598. <aside class="phpdocumentor-element-found-in">
  599. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  600. :
  601. <span class="phpdocumentor-element-found-in__line">98</span>
  602. </aside>
  603. <p class="phpdocumentor-summary">Returns a closure that applies the mask for the chosen mask pattern.</p>
  604. <code class="phpdocumentor-code phpdocumentor-signature ">
  605. <span class="phpdocumentor-signature__visibility">public</span>
  606. <span class="phpdocumentor-signature__name">getMask</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><abbr title="\Closure">Closure</abbr></span></code>
  607. <section class="phpdocumentor-description"><p>Encapsulates data masks for the data bits in a QR code, per ISO 18004:2006 6.8. Implementations
  608. of this class can un-mask a raw BitMatrix. For simplicity, they will unmask the entire BitMatrix,
  609. including areas used for finder patterns, timing patterns, etc. These areas should be unused
  610. after the point they are unmasked anyway.</p>
  611. <p>Note that the diagram in section 6.8.1 is misleading since it indicates that $i is column position
  612. and $j is row position. In fact, as the text says, $i is row position and $j is column position.</p>
  613. </section>
  614. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  615. Tags
  616. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  617. </h5>
  618. <dl class="phpdocumentor-tag-list">
  619. <dt class="phpdocumentor-tag-list__entry">
  620. <span class="phpdocumentor-tag__name">see</span>
  621. </dt>
  622. <dd class="phpdocumentor-tag-list__definition">
  623. <span class="phpdocumentor-tag-link"><a href="https://www.thonky.com/qr-code-tutorial/mask-patterns"><abbr title="https://www.thonky.com/qr-code-tutorial/mask-patterns">https://www.thonky.com/qr-code-tutorial/mask-patterns</abbr></a></span>
  624. </dd>
  625. <dt class="phpdocumentor-tag-list__entry">
  626. <span class="phpdocumentor-tag__name">see</span>
  627. </dt>
  628. <dd class="phpdocumentor-tag-list__definition">
  629. <span class="phpdocumentor-tag-link"><a href="https://github.com/zxing/zxing/blob/e9e2bd280bcaeabd59d0f955798384fe6c018a6c/core/src/main/java/com/google/zxing/qrcode/decoder/DataMask.java#L32-L117"><abbr title="https://github.com/zxing/zxing/blob/e9e2bd280bcaeabd59d0f955798384fe6c018a6c/core/src/main/java/com/google/zxing/qrcode/decoder/DataMask.java#L32-L117">https://github.com/zxing/zxing/blob/e9e2bd280bcaeabd59d0f955798384fe6c018a6c/core/src/main/java/com/google/zxing/qrcode/decoder/DataMask.java#L32-L117</abbr></a></span>
  630. </dd>
  631. </dl>
  632. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  633. <span class="phpdocumentor-signature__response_type"><abbr title="\Closure">Closure</abbr></span>
  634. &mdash;
  635. </article>
  636. <article
  637. class="phpdocumentor-element
  638. -method
  639. -public
  640. "
  641. >
  642. <h4 class="phpdocumentor-element__name" id="method_getPattern">
  643. getPattern()
  644. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_getPattern" class="headerlink"><i class="fas fa-link"></i></a>
  645. </h4>
  646. <aside class="phpdocumentor-element-found-in">
  647. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  648. :
  649. <span class="phpdocumentor-element-found-in__line">80</span>
  650. </aside>
  651. <p class="phpdocumentor-summary">Returns the current mask pattern</p>
  652. <code class="phpdocumentor-code phpdocumentor-signature ">
  653. <span class="phpdocumentor-signature__visibility">public</span>
  654. <span class="phpdocumentor-signature__name">getPattern</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  655. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  656. <span class="phpdocumentor-signature__response_type">int</span>
  657. &mdash;
  658. </article>
  659. <article
  660. class="phpdocumentor-element
  661. -method
  662. -public
  663. -static "
  664. >
  665. <h4 class="phpdocumentor-element__name" id="method_testRule1">
  666. testRule1()
  667. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_testRule1" class="headerlink"><i class="fas fa-link"></i></a>
  668. </h4>
  669. <aside class="phpdocumentor-element-found-in">
  670. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  671. :
  672. <span class="phpdocumentor-element-found-in__line">137</span>
  673. </aside>
  674. <p class="phpdocumentor-summary">Apply mask penalty rule 1 and return the penalty. Find repetitive cells with the same color and
  675. give penalty to them. Example: 00000 or 11111.</p>
  676. <code class="phpdocumentor-code phpdocumentor-signature ">
  677. <span class="phpdocumentor-signature__visibility">public</span>
  678. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">testRule1</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$height</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$width</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  679. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  680. <dl class="phpdocumentor-argument-list">
  681. <dt class="phpdocumentor-argument-list__entry">
  682. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  683. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  684. </dt>
  685. <dd class="phpdocumentor-argument-list__definition">
  686. <section class="phpdocumentor-description"></section>
  687. </dd>
  688. <dt class="phpdocumentor-argument-list__entry">
  689. <span class="phpdocumentor-signature__argument__name">$height</span>
  690. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  691. </dt>
  692. <dd class="phpdocumentor-argument-list__definition">
  693. <section class="phpdocumentor-description"></section>
  694. </dd>
  695. <dt class="phpdocumentor-argument-list__entry">
  696. <span class="phpdocumentor-signature__argument__name">$width</span>
  697. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  698. </dt>
  699. <dd class="phpdocumentor-argument-list__definition">
  700. <section class="phpdocumentor-description"></section>
  701. </dd>
  702. </dl>
  703. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  704. <span class="phpdocumentor-signature__response_type">int</span>
  705. &mdash;
  706. </article>
  707. <article
  708. class="phpdocumentor-element
  709. -method
  710. -public
  711. -static "
  712. >
  713. <h4 class="phpdocumentor-element__name" id="method_testRule2">
  714. testRule2()
  715. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_testRule2" class="headerlink"><i class="fas fa-link"></i></a>
  716. </h4>
  717. <aside class="phpdocumentor-element-found-in">
  718. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  719. :
  720. <span class="phpdocumentor-element-found-in__line">182</span>
  721. </aside>
  722. <p class="phpdocumentor-summary">Apply mask penalty rule 2 and return the penalty. Find 2x2 blocks with the same color and give
  723. penalty to them. This is actually equivalent to the spec&#039;s rule, which is to find MxN blocks and give a
  724. penalty proportional to (M-1)x(N-1), because this is the number of 2x2 blocks inside such a block.</p>
  725. <code class="phpdocumentor-code phpdocumentor-signature ">
  726. <span class="phpdocumentor-signature__visibility">public</span>
  727. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">testRule2</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$height</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$width</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  728. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  729. <dl class="phpdocumentor-argument-list">
  730. <dt class="phpdocumentor-argument-list__entry">
  731. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  732. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  733. </dt>
  734. <dd class="phpdocumentor-argument-list__definition">
  735. <section class="phpdocumentor-description"></section>
  736. </dd>
  737. <dt class="phpdocumentor-argument-list__entry">
  738. <span class="phpdocumentor-signature__argument__name">$height</span>
  739. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  740. </dt>
  741. <dd class="phpdocumentor-argument-list__definition">
  742. <section class="phpdocumentor-description"></section>
  743. </dd>
  744. <dt class="phpdocumentor-argument-list__entry">
  745. <span class="phpdocumentor-signature__argument__name">$width</span>
  746. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  747. </dt>
  748. <dd class="phpdocumentor-argument-list__definition">
  749. <section class="phpdocumentor-description"></section>
  750. </dd>
  751. </dl>
  752. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  753. <span class="phpdocumentor-signature__response_type">int</span>
  754. &mdash;
  755. </article>
  756. <article
  757. class="phpdocumentor-element
  758. -method
  759. -public
  760. -static "
  761. >
  762. <h4 class="phpdocumentor-element__name" id="method_testRule3">
  763. testRule3()
  764. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_testRule3" class="headerlink"><i class="fas fa-link"></i></a>
  765. </h4>
  766. <aside class="phpdocumentor-element-found-in">
  767. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  768. :
  769. <span class="phpdocumentor-element-found-in__line">215</span>
  770. </aside>
  771. <p class="phpdocumentor-summary">Apply mask penalty rule 3 and return the penalty. Find consecutive runs of 1:1:3:1:1:4
  772. starting with black, or 4:1:1:3:1:1 starting with white, and give penalty to them. If we
  773. find patterns like 000010111010000, we give penalty once.</p>
  774. <code class="phpdocumentor-code phpdocumentor-signature ">
  775. <span class="phpdocumentor-signature__visibility">public</span>
  776. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">testRule3</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$height</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$width</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  777. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  778. <dl class="phpdocumentor-argument-list">
  779. <dt class="phpdocumentor-argument-list__entry">
  780. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  781. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  782. </dt>
  783. <dd class="phpdocumentor-argument-list__definition">
  784. <section class="phpdocumentor-description"></section>
  785. </dd>
  786. <dt class="phpdocumentor-argument-list__entry">
  787. <span class="phpdocumentor-signature__argument__name">$height</span>
  788. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  789. </dt>
  790. <dd class="phpdocumentor-argument-list__definition">
  791. <section class="phpdocumentor-description"></section>
  792. </dd>
  793. <dt class="phpdocumentor-argument-list__entry">
  794. <span class="phpdocumentor-signature__argument__name">$width</span>
  795. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  796. </dt>
  797. <dd class="phpdocumentor-argument-list__definition">
  798. <section class="phpdocumentor-description"></section>
  799. </dd>
  800. </dl>
  801. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  802. <span class="phpdocumentor-signature__response_type">int</span>
  803. &mdash;
  804. </article>
  805. <article
  806. class="phpdocumentor-element
  807. -method
  808. -public
  809. -static "
  810. >
  811. <h4 class="phpdocumentor-element__name" id="method_testRule4">
  812. testRule4()
  813. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_testRule4" class="headerlink"><i class="fas fa-link"></i></a>
  814. </h4>
  815. <aside class="phpdocumentor-element-found-in">
  816. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  817. :
  818. <span class="phpdocumentor-element-found-in__line">301</span>
  819. </aside>
  820. <p class="phpdocumentor-summary">Apply mask penalty rule 4 and return the penalty. Calculate the ratio of dark cells and give
  821. penalty if the ratio is far from 50%. It gives 10 penalty for 5% distance.</p>
  822. <code class="phpdocumentor-code phpdocumentor-signature ">
  823. <span class="phpdocumentor-signature__visibility">public</span>
  824. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">testRule4</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$height</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$width</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  825. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  826. <dl class="phpdocumentor-argument-list">
  827. <dt class="phpdocumentor-argument-list__entry">
  828. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  829. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  830. </dt>
  831. <dd class="phpdocumentor-argument-list__definition">
  832. <section class="phpdocumentor-description"></section>
  833. </dd>
  834. <dt class="phpdocumentor-argument-list__entry">
  835. <span class="phpdocumentor-signature__argument__name">$height</span>
  836. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  837. </dt>
  838. <dd class="phpdocumentor-argument-list__definition">
  839. <section class="phpdocumentor-description"></section>
  840. </dd>
  841. <dt class="phpdocumentor-argument-list__entry">
  842. <span class="phpdocumentor-signature__argument__name">$width</span>
  843. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  844. </dt>
  845. <dd class="phpdocumentor-argument-list__definition">
  846. <section class="phpdocumentor-description"></section>
  847. </dd>
  848. </dl>
  849. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  850. <span class="phpdocumentor-signature__response_type">int</span>
  851. &mdash;
  852. </article>
  853. <article
  854. class="phpdocumentor-element
  855. -method
  856. -private
  857. -static "
  858. >
  859. <h4 class="phpdocumentor-element__name" id="method_applyRule1">
  860. applyRule1()
  861. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_applyRule1" class="headerlink"><i class="fas fa-link"></i></a>
  862. </h4>
  863. <aside class="phpdocumentor-element-found-in">
  864. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  865. :
  866. <span class="phpdocumentor-element-found-in__line">144</span>
  867. </aside>
  868. <code class="phpdocumentor-code phpdocumentor-signature ">
  869. <span class="phpdocumentor-signature__visibility">private</span>
  870. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">applyRule1</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$height</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$width</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$isHorizontal</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  871. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  872. <dl class="phpdocumentor-argument-list">
  873. <dt class="phpdocumentor-argument-list__entry">
  874. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  875. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  876. </dt>
  877. <dd class="phpdocumentor-argument-list__definition">
  878. <section class="phpdocumentor-description"></section>
  879. </dd>
  880. <dt class="phpdocumentor-argument-list__entry">
  881. <span class="phpdocumentor-signature__argument__name">$height</span>
  882. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  883. </dt>
  884. <dd class="phpdocumentor-argument-list__definition">
  885. <section class="phpdocumentor-description"></section>
  886. </dd>
  887. <dt class="phpdocumentor-argument-list__entry">
  888. <span class="phpdocumentor-signature__argument__name">$width</span>
  889. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  890. </dt>
  891. <dd class="phpdocumentor-argument-list__definition">
  892. <section class="phpdocumentor-description"></section>
  893. </dd>
  894. <dt class="phpdocumentor-argument-list__entry">
  895. <span class="phpdocumentor-signature__argument__name">$isHorizontal</span>
  896. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  897. </dt>
  898. <dd class="phpdocumentor-argument-list__definition">
  899. <section class="phpdocumentor-description"></section>
  900. </dd>
  901. </dl>
  902. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  903. <span class="phpdocumentor-signature__response_type">int</span>
  904. &mdash;
  905. </article>
  906. <article
  907. class="phpdocumentor-element
  908. -method
  909. -private
  910. -static "
  911. >
  912. <h4 class="phpdocumentor-element__name" id="method_isWhiteHorizontal">
  913. isWhiteHorizontal()
  914. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_isWhiteHorizontal" class="headerlink"><i class="fas fa-link"></i></a>
  915. </h4>
  916. <aside class="phpdocumentor-element-found-in">
  917. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  918. :
  919. <span class="phpdocumentor-element-found-in__line">264</span>
  920. </aside>
  921. <code class="phpdocumentor-code phpdocumentor-signature ">
  922. <span class="phpdocumentor-signature__visibility">private</span>
  923. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">isWhiteHorizontal</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$row</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$width</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$from</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$to</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  924. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  925. <dl class="phpdocumentor-argument-list">
  926. <dt class="phpdocumentor-argument-list__entry">
  927. <span class="phpdocumentor-signature__argument__name">$row</span>
  928. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  929. </dt>
  930. <dd class="phpdocumentor-argument-list__definition">
  931. <section class="phpdocumentor-description"></section>
  932. </dd>
  933. <dt class="phpdocumentor-argument-list__entry">
  934. <span class="phpdocumentor-signature__argument__name">$width</span>
  935. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  936. </dt>
  937. <dd class="phpdocumentor-argument-list__definition">
  938. <section class="phpdocumentor-description"></section>
  939. </dd>
  940. <dt class="phpdocumentor-argument-list__entry">
  941. <span class="phpdocumentor-signature__argument__name">$from</span>
  942. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  943. </dt>
  944. <dd class="phpdocumentor-argument-list__definition">
  945. <section class="phpdocumentor-description"></section>
  946. </dd>
  947. <dt class="phpdocumentor-argument-list__entry">
  948. <span class="phpdocumentor-signature__argument__name">$to</span>
  949. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  950. </dt>
  951. <dd class="phpdocumentor-argument-list__definition">
  952. <section class="phpdocumentor-description"></section>
  953. </dd>
  954. </dl>
  955. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  956. <span class="phpdocumentor-signature__response_type">bool</span>
  957. &mdash;
  958. </article>
  959. <article
  960. class="phpdocumentor-element
  961. -method
  962. -private
  963. -static "
  964. >
  965. <h4 class="phpdocumentor-element__name" id="method_isWhiteVertical">
  966. isWhiteVertical()
  967. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#method_isWhiteVertical" class="headerlink"><i class="fas fa-link"></i></a>
  968. </h4>
  969. <aside class="phpdocumentor-element-found-in">
  970. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/MaskPattern.php"><a href="files/src-common-maskpattern.html"><abbr title="src/Common/MaskPattern.php">MaskPattern.php</abbr></a></abbr>
  971. :
  972. <span class="phpdocumentor-element-found-in__line">282</span>
  973. </aside>
  974. <code class="phpdocumentor-code phpdocumentor-signature ">
  975. <span class="phpdocumentor-signature__visibility">private</span>
  976. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">isWhiteVertical</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$height</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$x</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$from</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$to</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  977. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  978. <dl class="phpdocumentor-argument-list">
  979. <dt class="phpdocumentor-argument-list__entry">
  980. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  981. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  982. </dt>
  983. <dd class="phpdocumentor-argument-list__definition">
  984. <section class="phpdocumentor-description"></section>
  985. </dd>
  986. <dt class="phpdocumentor-argument-list__entry">
  987. <span class="phpdocumentor-signature__argument__name">$height</span>
  988. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  989. </dt>
  990. <dd class="phpdocumentor-argument-list__definition">
  991. <section class="phpdocumentor-description"></section>
  992. </dd>
  993. <dt class="phpdocumentor-argument-list__entry">
  994. <span class="phpdocumentor-signature__argument__name">$x</span>
  995. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  996. </dt>
  997. <dd class="phpdocumentor-argument-list__definition">
  998. <section class="phpdocumentor-description"></section>
  999. </dd>
  1000. <dt class="phpdocumentor-argument-list__entry">
  1001. <span class="phpdocumentor-signature__argument__name">$from</span>
  1002. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1003. </dt>
  1004. <dd class="phpdocumentor-argument-list__definition">
  1005. <section class="phpdocumentor-description"></section>
  1006. </dd>
  1007. <dt class="phpdocumentor-argument-list__entry">
  1008. <span class="phpdocumentor-signature__argument__name">$to</span>
  1009. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1010. </dt>
  1011. <dd class="phpdocumentor-argument-list__definition">
  1012. <section class="phpdocumentor-description"></section>
  1013. </dd>
  1014. </dl>
  1015. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1016. <span class="phpdocumentor-signature__response_type">bool</span>
  1017. &mdash;
  1018. </article>
  1019. </section>
  1020. <script type="text/javascript">
  1021. function loadExternalCodeSnippets(line) {
  1022. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1023. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  1024. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  1025. var language = 'php';
  1026. var code = document.createElement('code');
  1027. code.className = 'language-' + language;
  1028. pre.textContent = '';
  1029. pre.setAttribute('data-line', line)
  1030. code.textContent = 'Loading…';
  1031. pre.appendChild(code);
  1032. var xhr = new XMLHttpRequest();
  1033. xhr.open('GET', src, true);
  1034. xhr.onreadystatechange = function () {
  1035. if (xhr.readyState == 4) {
  1036. if (xhr.status < 400 && xhr.responseText) {
  1037. code.textContent = xhr.responseText;
  1038. Prism.highlightElement(code);
  1039. }
  1040. else if (xhr.status >= 400) {
  1041. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1042. }
  1043. else {
  1044. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  1045. }
  1046. }
  1047. };
  1048. xhr.send(null);
  1049. });
  1050. }
  1051. var modals = document.querySelectorAll("[data-modal]");
  1052. modals.forEach(function (trigger) {
  1053. trigger.addEventListener("click", function (event) {
  1054. //event.preventDefault();
  1055. const modal = document.getElementById(trigger.dataset.modal);
  1056. modal.classList.add("phpdocumentor-modal__open");
  1057. loadExternalCodeSnippets(trigger.dataset.line)
  1058. const exits = modal.querySelectorAll("[data-exit-button]");
  1059. exits.forEach(function (exit) {
  1060. exit.addEventListener("click", function (event) {
  1061. event.preventDefault();
  1062. modal.classList.remove("phpdocumentor-modal__open");
  1063. });
  1064. });
  1065. });
  1066. });
  1067. </script>
  1068. </article>
  1069. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1070. <section class="phpdocumentor-search-results__dialog">
  1071. <header class="phpdocumentor-search-results__header">
  1072. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1073. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1074. </header>
  1075. <section class="phpdocumentor-search-results__body">
  1076. <ul class="phpdocumentor-search-results__entries"></ul>
  1077. </section>
  1078. </section>
  1079. </section>
  1080. </div>
  1081. </div>
  1082. <a href="classes/chillerlan-QRCode-Common-MaskPattern.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1083. </main>
  1084. <script>
  1085. cssVars({});
  1086. </script>
  1087. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1088. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1089. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1090. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1091. </body>
  1092. </html>