chillerlan-QRCode-Decoder-BitMatrixParser.html 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057
  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"><a href="namespaces/chillerlan.html">chillerlan</a></h4>
  56. <ul class="phpdocumentor-list">
  57. <li>
  58. <a href="namespaces/chillerlan-qrcode.html">QRCode</a>
  59. </li>
  60. <li>
  61. <a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a>
  62. </li>
  63. </ul>
  64. </section>
  65. <section class="phpdocumentor-sidebar__category">
  66. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  67. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="packages/Application.html">Application</a></h4>
  68. </section>
  69. <section class="phpdocumentor-sidebar__category">
  70. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  71. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  72. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  73. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  74. </section>
  75. <section class="phpdocumentor-sidebar__category">
  76. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  78. </section>
  79. </aside>
  80. <div class="phpdocumentor-column -eight phpdocumentor-content">
  81. <ul class="phpdocumentor-breadcrumbs">
  82. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  83. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  84. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-decoder.html">Decoder</a></li>
  85. </ul>
  86. <article class="phpdocumentor-element -class">
  87. <h2 class="phpdocumentor-content__title">
  88. BitMatrixParser
  89. <div class="phpdocumentor-element__package">
  90. in package
  91. <ul class="phpdocumentor-breadcrumbs">
  92. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  93. </ul>
  94. </div>
  95. </h2>
  96. <aside class="phpdocumentor-element-found-in">
  97. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  98. :
  99. <span class="phpdocumentor-element-found-in__line">21</span>
  100. </aside>
  101. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  102. Tags
  103. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  104. </h5>
  105. <dl class="phpdocumentor-tag-list">
  106. <dt class="phpdocumentor-tag-list__entry">
  107. <span class="phpdocumentor-tag__name">author</span>
  108. </dt>
  109. <dd class="phpdocumentor-tag-list__definition">
  110. <section class="phpdocumentor-description"><p>Sean Owen</p>
  111. </section>
  112. </dd>
  113. </dl>
  114. <h3 id="toc">
  115. Table of Contents
  116. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  117. </h3>
  118. <dl class="phpdocumentor-table-of-contents">
  119. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  120. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#property_bitMatrix">$bitMatrix</a>
  121. <span>
  122. &nbsp;: <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html"><abbr title="\chillerlan\QRCode\Decoder\BitMatrix">BitMatrix</abbr></a> </span>
  123. </dt>
  124. <dd></dd>
  125. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  126. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#property_mirror">$mirror</a>
  127. <span>
  128. &nbsp;: bool </span>
  129. </dt>
  130. <dd></dd>
  131. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  132. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#property_parsedFormatInfo">$parsedFormatInfo</a>
  133. <span>
  134. &nbsp;: <a href="classes/chillerlan-QRCode-Common-FormatInformation.html"><abbr title="\chillerlan\QRCode\Common\FormatInformation">FormatInformation</abbr></a>|null </span>
  135. </dt>
  136. <dd></dd>
  137. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  138. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#property_parsedVersion">$parsedVersion</a>
  139. <span>
  140. &nbsp;: <a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>|null </span>
  141. </dt>
  142. <dd></dd>
  143. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  144. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method___construct">__construct()</a>
  145. <span>
  146. &nbsp;: mixed </span>
  147. </dt>
  148. <dd></dd>
  149. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  150. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_mirror">mirror()</a>
  151. <span>
  152. &nbsp;: void </span>
  153. </dt>
  154. <dd>Mirror the bit matrix in order to attempt a second reading.</dd>
  155. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  156. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_readCodewords">readCodewords()</a>
  157. <span>
  158. &nbsp;: array&lt;string|int, mixed&gt; </span>
  159. </dt>
  160. <dd>&lt;p&gt;Reads the bits in the {@link BitMatrix} representing the finder pattern in the
  161. correct order in order to reconstruct the codewords bytes contained within the
  162. QR Code.&lt;/p&gt;</dd>
  163. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  164. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_readFormatInformation">readFormatInformation()</a>
  165. <span>
  166. &nbsp;: <a href="classes/chillerlan-QRCode-Common-FormatInformation.html"><abbr title="\chillerlan\QRCode\Common\FormatInformation">FormatInformation</abbr></a> </span>
  167. </dt>
  168. <dd>&lt;p&gt;Reads format information from one of its two locations within the QR Code.&lt;/p&gt;</dd>
  169. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  170. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_readVersion">readVersion()</a>
  171. <span>
  172. &nbsp;: <a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a> </span>
  173. </dt>
  174. <dd>&lt;p&gt;Reads version information from one of its two locations within the QR Code.&lt;/p&gt;</dd>
  175. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  176. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_setMirror">setMirror()</a>
  177. <span>
  178. &nbsp;: void </span>
  179. </dt>
  180. <dd>Prepare the parser for a mirrored operation.</dd>
  181. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  182. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_uRShift">uRShift()</a>
  183. <span>
  184. &nbsp;: int </span>
  185. </dt>
  186. <dd></dd>
  187. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  188. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_copyBit">copyBit()</a>
  189. <span>
  190. &nbsp;: int </span>
  191. </dt>
  192. <dd></dd>
  193. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  194. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_decodeVersionInformation">decodeVersionInformation()</a>
  195. <span>
  196. &nbsp;: <a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>|null </span>
  197. </dt>
  198. <dd></dd>
  199. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  200. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_doDecodeFormatInformation">doDecodeFormatInformation()</a>
  201. <span>
  202. &nbsp;: <a href="classes/chillerlan-QRCode-Common-FormatInformation.html"><abbr title="\chillerlan\QRCode\Common\FormatInformation">FormatInformation</abbr></a>|null </span>
  203. </dt>
  204. <dd></dd>
  205. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  206. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_numBitsDiffering">numBitsDiffering()</a>
  207. <span>
  208. &nbsp;: int </span>
  209. </dt>
  210. <dd></dd>
  211. </dl>
  212. <section class="phpdocumentor-properties">
  213. <h3 class="phpdocumentor-elements__header" id="properties">
  214. Properties
  215. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  216. </h3>
  217. <article
  218. class="
  219. phpdocumentor-element
  220. -property
  221. -private
  222. "
  223. >
  224. <h4 class="phpdocumentor-element__name" id="property_bitMatrix">
  225. $bitMatrix
  226. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#property_bitMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  227. <span class="phpdocumentor-element__modifiers">
  228. </span>
  229. </h4>
  230. <aside class="phpdocumentor-element-found-in">
  231. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  232. :
  233. <span class="phpdocumentor-element-found-in__line">23</span>
  234. </aside>
  235. <code class="phpdocumentor-code phpdocumentor-signature ">
  236. <span class="phpdocumentor-signature__visibility">private</span>
  237. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html"><abbr title="\chillerlan\QRCode\Decoder\BitMatrix">BitMatrix</abbr></a></span>
  238. <span class="phpdocumentor-signature__name">$bitMatrix</span>
  239. </code>
  240. <section class="phpdocumentor-description"></section>
  241. <section class="phpdocumentor-description"></section>
  242. </article>
  243. <article
  244. class="
  245. phpdocumentor-element
  246. -property
  247. -private
  248. "
  249. >
  250. <h4 class="phpdocumentor-element__name" id="property_mirror">
  251. $mirror
  252. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#property_mirror" class="headerlink"><i class="fas fa-link"></i></a>
  253. <span class="phpdocumentor-element__modifiers">
  254. </span>
  255. </h4>
  256. <aside class="phpdocumentor-element-found-in">
  257. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  258. :
  259. <span class="phpdocumentor-element-found-in__line">26</span>
  260. </aside>
  261. <code class="phpdocumentor-code phpdocumentor-signature ">
  262. <span class="phpdocumentor-signature__visibility">private</span>
  263. <span class="phpdocumentor-signature__type">bool</span>
  264. <span class="phpdocumentor-signature__name">$mirror</span>
  265. = <span class="phpdocumentor-signature__default-value">false</span></code>
  266. <section class="phpdocumentor-description"></section>
  267. <section class="phpdocumentor-description"></section>
  268. </article>
  269. <article
  270. class="
  271. phpdocumentor-element
  272. -property
  273. -private
  274. "
  275. >
  276. <h4 class="phpdocumentor-element__name" id="property_parsedFormatInfo">
  277. $parsedFormatInfo
  278. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#property_parsedFormatInfo" class="headerlink"><i class="fas fa-link"></i></a>
  279. <span class="phpdocumentor-element__modifiers">
  280. </span>
  281. </h4>
  282. <aside class="phpdocumentor-element-found-in">
  283. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  284. :
  285. <span class="phpdocumentor-element-found-in__line">25</span>
  286. </aside>
  287. <code class="phpdocumentor-code phpdocumentor-signature ">
  288. <span class="phpdocumentor-signature__visibility">private</span>
  289. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Common-FormatInformation.html"><abbr title="\chillerlan\QRCode\Common\FormatInformation">FormatInformation</abbr></a>|null</span>
  290. <span class="phpdocumentor-signature__name">$parsedFormatInfo</span>
  291. = <span class="phpdocumentor-signature__default-value">null</span></code>
  292. <section class="phpdocumentor-description"></section>
  293. <section class="phpdocumentor-description"></section>
  294. </article>
  295. <article
  296. class="
  297. phpdocumentor-element
  298. -property
  299. -private
  300. "
  301. >
  302. <h4 class="phpdocumentor-element__name" id="property_parsedVersion">
  303. $parsedVersion
  304. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#property_parsedVersion" class="headerlink"><i class="fas fa-link"></i></a>
  305. <span class="phpdocumentor-element__modifiers">
  306. </span>
  307. </h4>
  308. <aside class="phpdocumentor-element-found-in">
  309. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  310. :
  311. <span class="phpdocumentor-element-found-in__line">24</span>
  312. </aside>
  313. <code class="phpdocumentor-code phpdocumentor-signature ">
  314. <span class="phpdocumentor-signature__visibility">private</span>
  315. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>|null</span>
  316. <span class="phpdocumentor-signature__name">$parsedVersion</span>
  317. = <span class="phpdocumentor-signature__default-value">null</span></code>
  318. <section class="phpdocumentor-description"></section>
  319. <section class="phpdocumentor-description"></section>
  320. </article>
  321. </section>
  322. <section class="phpdocumentor-methods">
  323. <h3 class="phpdocumentor-elements__header" id="methods">
  324. Methods
  325. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  326. </h3>
  327. <article
  328. class="phpdocumentor-element
  329. -method
  330. -public
  331. "
  332. >
  333. <h4 class="phpdocumentor-element__name" id="method___construct">
  334. __construct()
  335. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  336. </h4>
  337. <aside class="phpdocumentor-element-found-in">
  338. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  339. :
  340. <span class="phpdocumentor-element-found-in__line">33</span>
  341. </aside>
  342. <code class="phpdocumentor-code phpdocumentor-signature ">
  343. <span class="phpdocumentor-signature__visibility">public</span>
  344. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html"><abbr title="\chillerlan\QRCode\Decoder\BitMatrix">BitMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$bitMatrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  345. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  346. <dl class="phpdocumentor-argument-list">
  347. <dt class="phpdocumentor-argument-list__entry">
  348. <span class="phpdocumentor-signature__argument__name">$bitMatrix</span>
  349. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html"><abbr title="\chillerlan\QRCode\Decoder\BitMatrix">BitMatrix</abbr></a></span>
  350. </dt>
  351. <dd class="phpdocumentor-argument-list__definition">
  352. </dd>
  353. </dl>
  354. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  355. Tags
  356. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  357. </h5>
  358. <dl class="phpdocumentor-tag-list">
  359. <dt class="phpdocumentor-tag-list__entry">
  360. <span class="phpdocumentor-tag__name">throws</span>
  361. </dt>
  362. <dd class="phpdocumentor-tag-list__definition">
  363. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  364. <section class="phpdocumentor-description"><p>if dimension is not &gt;= 21 and 1 mod 4</p>
  365. </section>
  366. </dd>
  367. </dl>
  368. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  369. <span class="phpdocumentor-signature__response_type">mixed</span>
  370. &mdash;
  371. </article>
  372. <article
  373. class="phpdocumentor-element
  374. -method
  375. -public
  376. "
  377. >
  378. <h4 class="phpdocumentor-element__name" id="method_mirror">
  379. mirror()
  380. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_mirror" class="headerlink"><i class="fas fa-link"></i></a>
  381. </h4>
  382. <aside class="phpdocumentor-element-found-in">
  383. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  384. :
  385. <span class="phpdocumentor-element-found-in__line">60</span>
  386. </aside>
  387. <p class="phpdocumentor-summary">Mirror the bit matrix in order to attempt a second reading.</p>
  388. <code class="phpdocumentor-code phpdocumentor-signature ">
  389. <span class="phpdocumentor-signature__visibility">public</span>
  390. <span class="phpdocumentor-signature__name">mirror</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  391. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  392. <span class="phpdocumentor-signature__response_type">void</span>
  393. &mdash;
  394. </article>
  395. <article
  396. class="phpdocumentor-element
  397. -method
  398. -public
  399. "
  400. >
  401. <h4 class="phpdocumentor-element__name" id="method_readCodewords">
  402. readCodewords()
  403. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_readCodewords" class="headerlink"><i class="fas fa-link"></i></a>
  404. </h4>
  405. <aside class="phpdocumentor-element-found-in">
  406. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  407. :
  408. <span class="phpdocumentor-element-found-in__line">84</span>
  409. </aside>
  410. <p class="phpdocumentor-summary">&lt;p&gt;Reads the bits in the {@link BitMatrix} representing the finder pattern in the
  411. correct order in order to reconstruct the codewords bytes contained within the
  412. QR Code.&lt;/p&gt;</p>
  413. <code class="phpdocumentor-code phpdocumentor-signature ">
  414. <span class="phpdocumentor-signature__visibility">public</span>
  415. <span class="phpdocumentor-signature__name">readCodewords</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  416. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  417. Tags
  418. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  419. </h5>
  420. <dl class="phpdocumentor-tag-list">
  421. <dt class="phpdocumentor-tag-list__entry">
  422. <span class="phpdocumentor-tag__name">throws</span>
  423. </dt>
  424. <dd class="phpdocumentor-tag-list__definition">
  425. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  426. <section class="phpdocumentor-description"><p>if the exact number of bytes expected is not read</p>
  427. </section>
  428. </dd>
  429. </dl>
  430. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  431. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  432. &mdash;
  433. <section class="phpdocumentor-description"><p>bytes encoded within the QR Code</p>
  434. </section>
  435. </article>
  436. <article
  437. class="phpdocumentor-element
  438. -method
  439. -public
  440. "
  441. >
  442. <h4 class="phpdocumentor-element__name" id="method_readFormatInformation">
  443. readFormatInformation()
  444. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_readFormatInformation" class="headerlink"><i class="fas fa-link"></i></a>
  445. </h4>
  446. <aside class="phpdocumentor-element-found-in">
  447. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  448. :
  449. <span class="phpdocumentor-element-found-in__line">148</span>
  450. </aside>
  451. <p class="phpdocumentor-summary">&lt;p&gt;Reads format information from one of its two locations within the QR Code.&lt;/p&gt;</p>
  452. <code class="phpdocumentor-code phpdocumentor-signature ">
  453. <span class="phpdocumentor-signature__visibility">public</span>
  454. <span class="phpdocumentor-signature__name">readFormatInformation</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-FormatInformation.html"><abbr title="\chillerlan\QRCode\Common\FormatInformation">FormatInformation</abbr></a></span></code>
  455. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  456. Tags
  457. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  458. </h5>
  459. <dl class="phpdocumentor-tag-list">
  460. <dt class="phpdocumentor-tag-list__entry">
  461. <span class="phpdocumentor-tag__name">throws</span>
  462. </dt>
  463. <dd class="phpdocumentor-tag-list__definition">
  464. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  465. <section class="phpdocumentor-description"><p>if both format information locations cannot be parsed as
  466. the valid encoding of format information</p>
  467. </section>
  468. </dd>
  469. </dl>
  470. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  471. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-FormatInformation.html"><abbr title="\chillerlan\QRCode\Common\FormatInformation">FormatInformation</abbr></a></span>
  472. &mdash;
  473. <section class="phpdocumentor-description"><p>encapsulating the QR Code's format info</p>
  474. </section>
  475. </article>
  476. <article
  477. class="phpdocumentor-element
  478. -method
  479. -public
  480. "
  481. >
  482. <h4 class="phpdocumentor-element__name" id="method_readVersion">
  483. readVersion()
  484. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_readVersion" class="headerlink"><i class="fas fa-link"></i></a>
  485. </h4>
  486. <aside class="phpdocumentor-element-found-in">
  487. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  488. :
  489. <span class="phpdocumentor-element-found-in__line">256</span>
  490. </aside>
  491. <p class="phpdocumentor-summary">&lt;p&gt;Reads version information from one of its two locations within the QR Code.&lt;/p&gt;</p>
  492. <code class="phpdocumentor-code phpdocumentor-signature ">
  493. <span class="phpdocumentor-signature__visibility">public</span>
  494. <span class="phpdocumentor-signature__name">readVersion</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span></code>
  495. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  496. Tags
  497. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  498. </h5>
  499. <dl class="phpdocumentor-tag-list">
  500. <dt class="phpdocumentor-tag-list__entry">
  501. <span class="phpdocumentor-tag__name">throws</span>
  502. </dt>
  503. <dd class="phpdocumentor-tag-list__definition">
  504. <span class="phpdocumentor-tag-link"><abbr title="\RuntimeException">RuntimeException</abbr></span>
  505. <section class="phpdocumentor-description"><p>if both version information locations cannot be parsed as
  506. the valid encoding of version information</p>
  507. </section>
  508. </dd>
  509. </dl>
  510. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  511. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  512. &mdash;
  513. <section class="phpdocumentor-description"><p>encapsulating the QR Code's version</p>
  514. </section>
  515. </article>
  516. <article
  517. class="phpdocumentor-element
  518. -method
  519. -public
  520. "
  521. >
  522. <h4 class="phpdocumentor-element__name" id="method_setMirror">
  523. setMirror()
  524. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_setMirror" class="headerlink"><i class="fas fa-link"></i></a>
  525. </h4>
  526. <aside class="phpdocumentor-element-found-in">
  527. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  528. :
  529. <span class="phpdocumentor-element-found-in__line">51</span>
  530. </aside>
  531. <p class="phpdocumentor-summary">Prepare the parser for a mirrored operation.</p>
  532. <code class="phpdocumentor-code phpdocumentor-signature ">
  533. <span class="phpdocumentor-signature__visibility">public</span>
  534. <span class="phpdocumentor-signature__name">setMirror</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$mirror</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  535. <section class="phpdocumentor-description"><p>This flag has effect only on the <a href="#readFormatInformation()"></a> and the
  536. <a href="#readVersion()"></a>. Before proceeding with <a href="#readCodewords()"></a> the
  537. <a href="#mirror()"></a> method should be called.</p>
  538. </section>
  539. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  540. <dl class="phpdocumentor-argument-list">
  541. <dt class="phpdocumentor-argument-list__entry">
  542. <span class="phpdocumentor-signature__argument__name">$mirror</span>
  543. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  544. </dt>
  545. <dd class="phpdocumentor-argument-list__definition">
  546. <section class="phpdocumentor-description"><p>Whether to read version and format information mirrored.</p>
  547. </section>
  548. </dd>
  549. </dl>
  550. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  551. <span class="phpdocumentor-signature__response_type">void</span>
  552. &mdash;
  553. </article>
  554. <article
  555. class="phpdocumentor-element
  556. -method
  557. -public
  558. -static "
  559. >
  560. <h4 class="phpdocumentor-element__name" id="method_uRShift">
  561. uRShift()
  562. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_uRShift" class="headerlink"><i class="fas fa-link"></i></a>
  563. </h4>
  564. <aside class="phpdocumentor-element-found-in">
  565. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  566. :
  567. <span class="phpdocumentor-element-found-in__line">344</span>
  568. </aside>
  569. <code class="phpdocumentor-code phpdocumentor-signature ">
  570. <span class="phpdocumentor-signature__visibility">public</span>
  571. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">uRShift</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$a</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">$b</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  572. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  573. <dl class="phpdocumentor-argument-list">
  574. <dt class="phpdocumentor-argument-list__entry">
  575. <span class="phpdocumentor-signature__argument__name">$a</span>
  576. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  577. </dt>
  578. <dd class="phpdocumentor-argument-list__definition">
  579. <section class="phpdocumentor-description"></section>
  580. </dd>
  581. <dt class="phpdocumentor-argument-list__entry">
  582. <span class="phpdocumentor-signature__argument__name">$b</span>
  583. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  584. </dt>
  585. <dd class="phpdocumentor-argument-list__definition">
  586. <section class="phpdocumentor-description"></section>
  587. </dd>
  588. </dl>
  589. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  590. <span class="phpdocumentor-signature__response_type">int</span>
  591. &mdash;
  592. </article>
  593. <article
  594. class="phpdocumentor-element
  595. -method
  596. -private
  597. "
  598. >
  599. <h4 class="phpdocumentor-element__name" id="method_copyBit">
  600. copyBit()
  601. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_copyBit" class="headerlink"><i class="fas fa-link"></i></a>
  602. </h4>
  603. <aside class="phpdocumentor-element-found-in">
  604. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  605. :
  606. <span class="phpdocumentor-element-found-in__line">67</span>
  607. </aside>
  608. <code class="phpdocumentor-code phpdocumentor-signature ">
  609. <span class="phpdocumentor-signature__visibility">private</span>
  610. <span class="phpdocumentor-signature__name">copyBit</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$i</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">$j</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">$versionBits</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  611. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  612. <dl class="phpdocumentor-argument-list">
  613. <dt class="phpdocumentor-argument-list__entry">
  614. <span class="phpdocumentor-signature__argument__name">$i</span>
  615. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  616. </dt>
  617. <dd class="phpdocumentor-argument-list__definition">
  618. <section class="phpdocumentor-description"></section>
  619. </dd>
  620. <dt class="phpdocumentor-argument-list__entry">
  621. <span class="phpdocumentor-signature__argument__name">$j</span>
  622. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  623. </dt>
  624. <dd class="phpdocumentor-argument-list__definition">
  625. <section class="phpdocumentor-description"></section>
  626. </dd>
  627. <dt class="phpdocumentor-argument-list__entry">
  628. <span class="phpdocumentor-signature__argument__name">$versionBits</span>
  629. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  630. </dt>
  631. <dd class="phpdocumentor-argument-list__definition">
  632. <section class="phpdocumentor-description"></section>
  633. </dd>
  634. </dl>
  635. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  636. <span class="phpdocumentor-signature__response_type">int</span>
  637. &mdash;
  638. </article>
  639. <article
  640. class="phpdocumentor-element
  641. -method
  642. -private
  643. "
  644. >
  645. <h4 class="phpdocumentor-element__name" id="method_decodeVersionInformation">
  646. decodeVersionInformation()
  647. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_decodeVersionInformation" class="headerlink"><i class="fas fa-link"></i></a>
  648. </h4>
  649. <aside class="phpdocumentor-element-found-in">
  650. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  651. :
  652. <span class="phpdocumentor-element-found-in__line">308</span>
  653. </aside>
  654. <code class="phpdocumentor-code phpdocumentor-signature ">
  655. <span class="phpdocumentor-signature__visibility">private</span>
  656. <span class="phpdocumentor-signature__name">decodeVersionInformation</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$versionBits</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>|null</span></code>
  657. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  658. <dl class="phpdocumentor-argument-list">
  659. <dt class="phpdocumentor-argument-list__entry">
  660. <span class="phpdocumentor-signature__argument__name">$versionBits</span>
  661. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  662. </dt>
  663. <dd class="phpdocumentor-argument-list__definition">
  664. </dd>
  665. </dl>
  666. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  667. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>|null</span>
  668. &mdash;
  669. </article>
  670. <article
  671. class="phpdocumentor-element
  672. -method
  673. -private
  674. "
  675. >
  676. <h4 class="phpdocumentor-element__name" id="method_doDecodeFormatInformation">
  677. doDecodeFormatInformation()
  678. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_doDecodeFormatInformation" class="headerlink"><i class="fas fa-link"></i></a>
  679. </h4>
  680. <aside class="phpdocumentor-element-found-in">
  681. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  682. :
  683. <span class="phpdocumentor-element-found-in__line">211</span>
  684. </aside>
  685. <code class="phpdocumentor-code phpdocumentor-signature ">
  686. <span class="phpdocumentor-signature__visibility">private</span>
  687. <span class="phpdocumentor-signature__name">doDecodeFormatInformation</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$maskedFormatInfo1</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">$maskedFormatInfo2</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-FormatInformation.html"><abbr title="\chillerlan\QRCode\Common\FormatInformation">FormatInformation</abbr></a>|null</span></code>
  688. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  689. <dl class="phpdocumentor-argument-list">
  690. <dt class="phpdocumentor-argument-list__entry">
  691. <span class="phpdocumentor-signature__argument__name">$maskedFormatInfo1</span>
  692. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  693. </dt>
  694. <dd class="phpdocumentor-argument-list__definition">
  695. <section class="phpdocumentor-description"><p>format info indicator, with mask still applied</p>
  696. </section>
  697. </dd>
  698. <dt class="phpdocumentor-argument-list__entry">
  699. <span class="phpdocumentor-signature__argument__name">$maskedFormatInfo2</span>
  700. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  701. </dt>
  702. <dd class="phpdocumentor-argument-list__definition">
  703. <section class="phpdocumentor-description"><p>second copy of same info; both are checked at the same time
  704. to establish best match</p>
  705. </section>
  706. </dd>
  707. </dl>
  708. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  709. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-FormatInformation.html"><abbr title="\chillerlan\QRCode\Common\FormatInformation">FormatInformation</abbr></a>|null</span>
  710. &mdash;
  711. <section class="phpdocumentor-description"><p>information about the format it specifies, or null
  712. if doesn't seem to match any known pattern</p>
  713. </section>
  714. </article>
  715. <article
  716. class="phpdocumentor-element
  717. -method
  718. -private
  719. -static "
  720. >
  721. <h4 class="phpdocumentor-element__name" id="method_numBitsDiffering">
  722. numBitsDiffering()
  723. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#method_numBitsDiffering" class="headerlink"><i class="fas fa-link"></i></a>
  724. </h4>
  725. <aside class="phpdocumentor-element-found-in">
  726. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrixParser.php"><a href="files/src-decoder-bitmatrixparser.html"><abbr title="src/Decoder/BitMatrixParser.php">BitMatrixParser.php</abbr></a></abbr>
  727. :
  728. <span class="phpdocumentor-element-found-in__line">356</span>
  729. </aside>
  730. <code class="phpdocumentor-code phpdocumentor-signature ">
  731. <span class="phpdocumentor-signature__visibility">private</span>
  732. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">numBitsDiffering</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$a</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">$b</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  733. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  734. <dl class="phpdocumentor-argument-list">
  735. <dt class="phpdocumentor-argument-list__entry">
  736. <span class="phpdocumentor-signature__argument__name">$a</span>
  737. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  738. </dt>
  739. <dd class="phpdocumentor-argument-list__definition">
  740. <section class="phpdocumentor-description"></section>
  741. </dd>
  742. <dt class="phpdocumentor-argument-list__entry">
  743. <span class="phpdocumentor-signature__argument__name">$b</span>
  744. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  745. </dt>
  746. <dd class="phpdocumentor-argument-list__definition">
  747. <section class="phpdocumentor-description"></section>
  748. </dd>
  749. </dl>
  750. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  751. <span class="phpdocumentor-signature__response_type">int</span>
  752. &mdash;
  753. </article>
  754. </section>
  755. <script type="text/javascript">
  756. function loadExternalCodeSnippets(line) {
  757. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  758. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  759. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  760. var language = 'php';
  761. var code = document.createElement('code');
  762. code.className = 'language-' + language;
  763. pre.textContent = '';
  764. pre.setAttribute('data-line', line)
  765. code.textContent = 'Loading…';
  766. pre.appendChild(code);
  767. var xhr = new XMLHttpRequest();
  768. xhr.open('GET', src, true);
  769. xhr.onreadystatechange = function () {
  770. if (xhr.readyState == 4) {
  771. if (xhr.status < 400 && xhr.responseText) {
  772. code.textContent = xhr.responseText;
  773. Prism.highlightElement(code);
  774. }
  775. else if (xhr.status >= 400) {
  776. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  777. }
  778. else {
  779. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  780. }
  781. }
  782. };
  783. xhr.send(null);
  784. });
  785. }
  786. var modals = document.querySelectorAll("[data-modal]");
  787. modals.forEach(function (trigger) {
  788. trigger.addEventListener("click", function (event) {
  789. //event.preventDefault();
  790. const modal = document.getElementById(trigger.dataset.modal);
  791. modal.classList.add("phpdocumentor-modal__open");
  792. loadExternalCodeSnippets(trigger.dataset.line)
  793. const exits = modal.querySelectorAll("[data-exit-button]");
  794. exits.forEach(function (exit) {
  795. exit.addEventListener("click", function (event) {
  796. event.preventDefault();
  797. modal.classList.remove("phpdocumentor-modal__open");
  798. });
  799. });
  800. });
  801. });
  802. </script>
  803. </article>
  804. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  805. <section class="phpdocumentor-search-results__dialog">
  806. <header class="phpdocumentor-search-results__header">
  807. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  808. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  809. </header>
  810. <section class="phpdocumentor-search-results__body">
  811. <ul class="phpdocumentor-search-results__entries"></ul>
  812. </section>
  813. </section>
  814. </section>
  815. </div>
  816. </div>
  817. <a href="classes/chillerlan-QRCode-Decoder-BitMatrixParser.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  818. </main>
  819. <script>
  820. cssVars({});
  821. </script>
  822. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  823. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  824. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  825. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  826. </body>
  827. </html>