chillerlan-QRCode-Decoder-BitMatrix.html 145 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205
  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-decoder.html">Decoder</a></li>
  89. </ul>
  90. <article class="phpdocumentor-element -class">
  91. <h2 class="phpdocumentor-content__title">
  92. BitMatrix
  93. <span class="phpdocumentor-element__extends">
  94. extends <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>
  95. </span>
  96. <div class="phpdocumentor-element__package">
  97. in package
  98. <ul class="phpdocumentor-breadcrumbs">
  99. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  100. </ul>
  101. </div>
  102. </h2>
  103. <aside class="phpdocumentor-element-found-in">
  104. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  105. :
  106. <span class="phpdocumentor-element-found-in__line">22</span>
  107. </aside>
  108. <p class="phpdocumentor-summary">Holds a numerical representation of the final QR Code;
  109. maps the ECC coded binary data and applies the mask pattern</p>
  110. <h3 id="toc">
  111. Table of Contents
  112. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  113. </h3>
  114. <dl class="phpdocumentor-table-of-contents">
  115. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  116. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_IS_DARK">IS_DARK</a>
  117. <span>
  118. &nbsp;= 0b100000000000 </span>
  119. </dt>
  120. <dd></dd>
  121. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  122. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_ALIGNMENT">M_ALIGNMENT</a>
  123. <span>
  124. &nbsp;= 0b10000 </span>
  125. </dt>
  126. <dd></dd>
  127. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  128. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_DARKMODULE">M_DARKMODULE</a>
  129. <span>
  130. &nbsp;= 0b1 </span>
  131. </dt>
  132. <dd></dd>
  133. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  134. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_DATA">M_DATA</a>
  135. <span>
  136. &nbsp;= 0b10 </span>
  137. </dt>
  138. <dd></dd>
  139. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  140. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_FINDER">M_FINDER</a>
  141. <span>
  142. &nbsp;= 0b100 </span>
  143. </dt>
  144. <dd></dd>
  145. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  146. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_FINDER_DOT">M_FINDER_DOT</a>
  147. <span>
  148. &nbsp;= 0b10000000000 </span>
  149. </dt>
  150. <dd></dd>
  151. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  152. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_FORMAT">M_FORMAT</a>
  153. <span>
  154. &nbsp;= 0b1000000 </span>
  155. </dt>
  156. <dd></dd>
  157. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  158. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_LOGO">M_LOGO</a>
  159. <span>
  160. &nbsp;= 0b1000000000 </span>
  161. </dt>
  162. <dd></dd>
  163. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  164. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_NULL">M_NULL</a>
  165. <span>
  166. &nbsp;= 0b0 </span>
  167. </dt>
  168. <dd></dd>
  169. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  170. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_QUIETZONE">M_QUIETZONE</a>
  171. <span>
  172. &nbsp;= 0b100000000 </span>
  173. </dt>
  174. <dd></dd>
  175. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  176. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_SEPARATOR">M_SEPARATOR</a>
  177. <span>
  178. &nbsp;= 0b1000 </span>
  179. </dt>
  180. <dd></dd>
  181. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  182. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_TEST">M_TEST</a>
  183. <span>
  184. &nbsp;= 0b11111111111 </span>
  185. </dt>
  186. <dd></dd>
  187. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  188. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_TIMING">M_TIMING</a>
  189. <span>
  190. &nbsp;= 0b100000 </span>
  191. </dt>
  192. <dd></dd>
  193. <dt class="phpdocumentor-table-of-contents__entry -constant -public">
  194. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_VERSION">M_VERSION</a>
  195. <span>
  196. &nbsp;= 0b10000000 </span>
  197. </dt>
  198. <dd></dd>
  199. <dt class="phpdocumentor-table-of-contents__entry -constant -protected">
  200. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_neighbours">neighbours</a>
  201. <span>
  202. &nbsp;= [0b1 =&gt; [-1, -1], 0b10 =&gt; [0, -1], 0b100 =&gt; [1, -1], 0b1000 =&gt; [1, 0], 0b10000 =&gt; [1, 1], 0b100000 =&gt; [0, 1], 0b1000000 =&gt; [-1, 1], 0b10000000 =&gt; [-1, 0]] </span>
  203. </dt>
  204. <dd>Map of flag =&gt; coord</dd>
  205. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  206. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#constant_DECODE_LOOKUP">DECODE_LOOKUP</a>
  207. <span>
  208. &nbsp;= [
  209. 0x5412,
  210. // 0101010000010010
  211. 0x5125,
  212. // 0101000100100101
  213. 0x5e7c,
  214. // 0101111001111100
  215. 0x5b4b,
  216. // 0101101101001011
  217. 0x45f9,
  218. // 0100010111111001
  219. 0x40ce,
  220. // 0100000011001110
  221. 0x4f97,
  222. // 0100111110010111
  223. 0x4aa0,
  224. // 0100101010100000
  225. 0x77c4,
  226. // 0111011111000100
  227. 0x72f3,
  228. // 0111001011110011
  229. 0x7daa,
  230. // 0111110110101010
  231. 0x789d,
  232. // 0111100010011101
  233. 0x662f,
  234. // 0110011000101111
  235. 0x6318,
  236. // 0110001100011000
  237. 0x6c41,
  238. // 0110110001000001
  239. 0x6976,
  240. // 0110100101110110
  241. 0x1689,
  242. // 0001011010001001
  243. 0x13be,
  244. // 0001001110111110
  245. 0x1ce7,
  246. // 0001110011100111
  247. 0x19d0,
  248. // 0001100111010000
  249. 0x762,
  250. // 0000011101100010
  251. 0x255,
  252. // 0000001001010101
  253. 0xd0c,
  254. // 0000110100001100
  255. 0x83b,
  256. // 0000100000111011
  257. 0x355f,
  258. // 0011010101011111
  259. 0x3068,
  260. // 0011000001101000
  261. 0x3f31,
  262. // 0011111100110001
  263. 0x3a06,
  264. // 0011101000000110
  265. 0x24b4,
  266. // 0010010010110100
  267. 0x2183,
  268. // 0010000110000011
  269. 0x2eda,
  270. // 0010111011011010
  271. 0x2bed,
  272. ] </span>
  273. </dt>
  274. <dd>See ISO 18004:2006, Annex C, Table C.1</dd>
  275. <dt class="phpdocumentor-table-of-contents__entry -constant -private">
  276. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#constant_FORMAT_INFO_MASK_QR">FORMAT_INFO_MASK_QR</a>
  277. <span>
  278. &nbsp;= 0x5412 </span>
  279. </dt>
  280. <dd></dd>
  281. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  282. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#property_eccLevel">$eccLevel</a>
  283. <span>
  284. &nbsp;: <a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>|null </span>
  285. </dt>
  286. <dd>the current ECC level</dd>
  287. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  288. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#property_maskPattern">$maskPattern</a>
  289. <span>
  290. &nbsp;: <a href="classes/chillerlan-QRCode-Common-MaskPattern.html"><abbr title="\chillerlan\QRCode\Common\MaskPattern">MaskPattern</abbr></a>|null </span>
  291. </dt>
  292. <dd>the used mask pattern, set via QRMatrix::mask()</dd>
  293. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  294. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#property_matrix">$matrix</a>
  295. <span>
  296. &nbsp;: array&lt;string|int, mixed&gt; </span>
  297. </dt>
  298. <dd>the actual matrix data array</dd>
  299. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  300. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#property_moduleCount">$moduleCount</a>
  301. <span>
  302. &nbsp;: int </span>
  303. </dt>
  304. <dd>the size (side length) of the matrix, including quiet zone (if created)</dd>
  305. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  306. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#property_version">$version</a>
  307. <span>
  308. &nbsp;: <a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>|null </span>
  309. </dt>
  310. <dd>a Version instance</dd>
  311. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  312. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#property_mirror">$mirror</a>
  313. <span>
  314. &nbsp;: bool </span>
  315. </dt>
  316. <dd></dd>
  317. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  318. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method___construct">__construct()</a>
  319. <span>
  320. &nbsp;: mixed </span>
  321. </dt>
  322. <dd>QRMatrix constructor.</dd>
  323. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  324. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_check">check()</a>
  325. <span>
  326. &nbsp;: bool </span>
  327. </dt>
  328. <dd>Checks whether a module is true (dark) or false (light)</dd>
  329. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  330. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_checkNeighbours">checkNeighbours()</a>
  331. <span>
  332. &nbsp;: int </span>
  333. </dt>
  334. <dd>Checks the status neighbouring modules of the given module at ($x, $y) and returns a bitmask with the results.</dd>
  335. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  336. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_checkType">checkType()</a>
  337. <span>
  338. &nbsp;: bool </span>
  339. </dt>
  340. <dd>Checks whether a module is of the given $M_TYPE</dd>
  341. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  342. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_checkTypeNotIn">checkTypeNotIn()</a>
  343. <span>
  344. &nbsp;: bool </span>
  345. </dt>
  346. <dd>checks whether the module at ($x, $y) is not in the given array of $M_TYPES,
  347. returns true if no matches are found, otherwise false.</dd>
  348. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  349. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_eccLevel">eccLevel()</a>
  350. <span>
  351. &nbsp;: <a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>|null </span>
  352. </dt>
  353. <dd>Returns the current ECC level</dd>
  354. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  355. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_flip">flip()</a>
  356. <span>
  357. &nbsp;: self </span>
  358. </dt>
  359. <dd>Flips the value of the module</dd>
  360. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  361. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_get">get()</a>
  362. <span>
  363. &nbsp;: int </span>
  364. </dt>
  365. <dd>Returns the value of the module at position [$x, $y] or -1 if the coordinate is outside of the matrix</dd>
  366. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  367. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_initFunctionalPatterns">initFunctionalPatterns()</a>
  368. <span>
  369. &nbsp;: self </span>
  370. </dt>
  371. <dd>shortcut to initialize the functional patterns</dd>
  372. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  373. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_mask">mask()</a>
  374. <span>
  375. &nbsp;: self </span>
  376. </dt>
  377. <dd>Applies/reverses the mask pattern</dd>
  378. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  379. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_maskPattern">maskPattern()</a>
  380. <span>
  381. &nbsp;: <a href="classes/chillerlan-QRCode-Common-MaskPattern.html"><abbr title="\chillerlan\QRCode\Common\MaskPattern">MaskPattern</abbr></a>|null </span>
  382. </dt>
  383. <dd>Returns the current mask pattern</dd>
  384. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  385. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_matrix">matrix()</a>
  386. <span>
  387. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt;|array&lt;string|int, array&lt;string|int, bool&gt;&gt; </span>
  388. </dt>
  389. <dd>Returns the data matrix, returns a pure boolean representation if $boolean is set to true</dd>
  390. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  391. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_mirror">mirror()</a>
  392. <span>
  393. &nbsp;: self </span>
  394. </dt>
  395. <dd>Mirror the bit matrix in order to attempt a second reading.</dd>
  396. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  397. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_readCodewords">readCodewords()</a>
  398. <span>
  399. &nbsp;: array&lt;string|int, mixed&gt; </span>
  400. </dt>
  401. <dd>Reads the bits in the BitMatrix representing the finder pattern in the
  402. correct order in order to reconstruct the codewords bytes contained within the
  403. QR Code.</dd>
  404. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  405. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_set">set()</a>
  406. <span>
  407. &nbsp;: self </span>
  408. </dt>
  409. <dd>Sets the $M_TYPE value for the module at position [$x, $y]</dd>
  410. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  411. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setAlignmentPattern">setAlignmentPattern()</a>
  412. <span>
  413. &nbsp;: self </span>
  414. </dt>
  415. <dd>Draws the 5x5 alignment patterns</dd>
  416. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  417. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setDarkModule">setDarkModule()</a>
  418. <span>
  419. &nbsp;: self </span>
  420. </dt>
  421. <dd>Sets the &quot;dark module&quot;, that is always on the same position 1x1px away from the bottom left finder</dd>
  422. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  423. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setFinderPattern">setFinderPattern()</a>
  424. <span>
  425. &nbsp;: self </span>
  426. </dt>
  427. <dd>Draws the 7x7 finder patterns in the corners top left/right and bottom left</dd>
  428. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  429. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setFormatInfo">setFormatInfo()</a>
  430. <span>
  431. &nbsp;: self </span>
  432. </dt>
  433. <dd>Draws the format info along the finder patterns</dd>
  434. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  435. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_setLogoSpace">setLogoSpace()</a>
  436. <span>
  437. &nbsp;: self </span>
  438. </dt>
  439. <dd>Clears a space of $width * $height in order to add a logo or text.</dd>
  440. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  441. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_setMirror">setMirror()</a>
  442. <span>
  443. &nbsp;: self </span>
  444. </dt>
  445. <dd>Prepare the parser for a mirrored operation.</dd>
  446. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  447. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_setQuietZone">setQuietZone()</a>
  448. <span>
  449. &nbsp;: self </span>
  450. </dt>
  451. <dd>Draws the &quot;quiet zone&quot; of $size around the matrix</dd>
  452. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  453. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setSeparators">setSeparators()</a>
  454. <span>
  455. &nbsp;: self </span>
  456. </dt>
  457. <dd>Draws the separator lines around the finder patterns</dd>
  458. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  459. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setTimingPattern">setTimingPattern()</a>
  460. <span>
  461. &nbsp;: self </span>
  462. </dt>
  463. <dd>Draws the timing pattern (h/v checkered line between the finder patterns)</dd>
  464. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  465. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setVersionNumber">setVersionNumber()</a>
  466. <span>
  467. &nbsp;: self </span>
  468. </dt>
  469. <dd>Draws the version information, 2x 3x6 pixel</dd>
  470. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  471. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_size">size()</a>
  472. <span>
  473. &nbsp;: int </span>
  474. </dt>
  475. <dd>Returns the absoulute size of the matrix, including quiet zone (after setting it).</dd>
  476. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  477. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_version">version()</a>
  478. <span>
  479. &nbsp;: <a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>|null </span>
  480. </dt>
  481. <dd>Returns the current version number</dd>
  482. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  483. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_writeCodewords">writeCodewords()</a>
  484. <span>
  485. &nbsp;: self </span>
  486. </dt>
  487. <dd>Maps the interleaved binary $data on the matrix</dd>
  488. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  489. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_createMatrix">createMatrix()</a>
  490. <span>
  491. &nbsp;: array&lt;string|int, mixed&gt; </span>
  492. </dt>
  493. <dd>Creates a 2-dimensional array (square) of the given $size</dd>
  494. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  495. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_copyVersionBit">copyVersionBit()</a>
  496. <span>
  497. &nbsp;: int </span>
  498. </dt>
  499. <dd></dd>
  500. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  501. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_decodeVersionInformation">decodeVersionInformation()</a>
  502. <span>
  503. &nbsp;: <a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>|null </span>
  504. </dt>
  505. <dd></dd>
  506. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  507. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_doDecodeFormatInformation">doDecodeFormatInformation()</a>
  508. <span>
  509. &nbsp;: int|null </span>
  510. </dt>
  511. <dd></dd>
  512. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  513. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_numBitsDiffering">numBitsDiffering()</a>
  514. <span>
  515. &nbsp;: int </span>
  516. </dt>
  517. <dd></dd>
  518. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  519. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_readFormatInformation">readFormatInformation()</a>
  520. <span>
  521. &nbsp;: self </span>
  522. </dt>
  523. <dd>Reads format information from one of its two locations within the QR Code.</dd>
  524. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  525. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_readVersion">readVersion()</a>
  526. <span>
  527. &nbsp;: self </span>
  528. </dt>
  529. <dd>Reads version information from one of its two locations within the QR Code.</dd>
  530. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  531. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_uRShift">uRShift()</a>
  532. <span>
  533. &nbsp;: int </span>
  534. </dt>
  535. <dd></dd>
  536. </dl>
  537. <section class="phpdocumentor-constants">
  538. <h3 class="phpdocumentor-elements__header" id="constants">
  539. Constants
  540. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#constants" class="headerlink"><i class="fas fa-link"></i></a>
  541. </h3>
  542. <article class="phpdocumentor-element -constant -public ">
  543. <h4 class="phpdocumentor-element__name" id="constant_IS_DARK">
  544. IS_DARK
  545. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_IS_DARK" class="headerlink"><i class="fas fa-link"></i></a>
  546. </h4>
  547. <aside class="phpdocumentor-element-found-in">
  548. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  549. :
  550. <span class="phpdocumentor-element-found-in__line">51</span>
  551. </aside>
  552. <code class="phpdocumentor-signature phpdocumentor-code ">
  553. <span class="phpdocumentor-signature__visibility">public</span>
  554. <span class="phpdocumentor-signature__type">int</span>
  555. <span class="phpdocumentor-signature__name">IS_DARK</span>
  556. = <span class="phpdocumentor-signature__default-value">0b100000000000</span>
  557. </code>
  558. </article>
  559. <article class="phpdocumentor-element -constant -public ">
  560. <h4 class="phpdocumentor-element__name" id="constant_M_ALIGNMENT">
  561. M_ALIGNMENT
  562. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_ALIGNMENT" 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/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  566. :
  567. <span class="phpdocumentor-element-found-in__line">35</span>
  568. </aside>
  569. <code class="phpdocumentor-signature phpdocumentor-code ">
  570. <span class="phpdocumentor-signature__visibility">public</span>
  571. <span class="phpdocumentor-signature__type">int</span>
  572. <span class="phpdocumentor-signature__name">M_ALIGNMENT</span>
  573. = <span class="phpdocumentor-signature__default-value">0b10000</span>
  574. </code>
  575. </article>
  576. <article class="phpdocumentor-element -constant -public ">
  577. <h4 class="phpdocumentor-element__name" id="constant_M_DARKMODULE">
  578. M_DARKMODULE
  579. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_DARKMODULE" class="headerlink"><i class="fas fa-link"></i></a>
  580. </h4>
  581. <aside class="phpdocumentor-element-found-in">
  582. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  583. :
  584. <span class="phpdocumentor-element-found-in__line">27</span>
  585. </aside>
  586. <code class="phpdocumentor-signature phpdocumentor-code ">
  587. <span class="phpdocumentor-signature__visibility">public</span>
  588. <span class="phpdocumentor-signature__type">int</span>
  589. <span class="phpdocumentor-signature__name">M_DARKMODULE</span>
  590. = <span class="phpdocumentor-signature__default-value">0b1</span>
  591. </code>
  592. </article>
  593. <article class="phpdocumentor-element -constant -public ">
  594. <h4 class="phpdocumentor-element__name" id="constant_M_DATA">
  595. M_DATA
  596. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_DATA" 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/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  600. :
  601. <span class="phpdocumentor-element-found-in__line">29</span>
  602. </aside>
  603. <code class="phpdocumentor-signature phpdocumentor-code ">
  604. <span class="phpdocumentor-signature__visibility">public</span>
  605. <span class="phpdocumentor-signature__type">int</span>
  606. <span class="phpdocumentor-signature__name">M_DATA</span>
  607. = <span class="phpdocumentor-signature__default-value">0b10</span>
  608. </code>
  609. </article>
  610. <article class="phpdocumentor-element -constant -public ">
  611. <h4 class="phpdocumentor-element__name" id="constant_M_FINDER">
  612. M_FINDER
  613. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_FINDER" class="headerlink"><i class="fas fa-link"></i></a>
  614. </h4>
  615. <aside class="phpdocumentor-element-found-in">
  616. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  617. :
  618. <span class="phpdocumentor-element-found-in__line">31</span>
  619. </aside>
  620. <code class="phpdocumentor-signature phpdocumentor-code ">
  621. <span class="phpdocumentor-signature__visibility">public</span>
  622. <span class="phpdocumentor-signature__type">int</span>
  623. <span class="phpdocumentor-signature__name">M_FINDER</span>
  624. = <span class="phpdocumentor-signature__default-value">0b100</span>
  625. </code>
  626. </article>
  627. <article class="phpdocumentor-element -constant -public ">
  628. <h4 class="phpdocumentor-element__name" id="constant_M_FINDER_DOT">
  629. M_FINDER_DOT
  630. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_FINDER_DOT" class="headerlink"><i class="fas fa-link"></i></a>
  631. </h4>
  632. <aside class="phpdocumentor-element-found-in">
  633. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  634. :
  635. <span class="phpdocumentor-element-found-in__line">47</span>
  636. </aside>
  637. <code class="phpdocumentor-signature phpdocumentor-code ">
  638. <span class="phpdocumentor-signature__visibility">public</span>
  639. <span class="phpdocumentor-signature__type">int</span>
  640. <span class="phpdocumentor-signature__name">M_FINDER_DOT</span>
  641. = <span class="phpdocumentor-signature__default-value">0b10000000000</span>
  642. </code>
  643. </article>
  644. <article class="phpdocumentor-element -constant -public ">
  645. <h4 class="phpdocumentor-element__name" id="constant_M_FORMAT">
  646. M_FORMAT
  647. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_FORMAT" 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/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  651. :
  652. <span class="phpdocumentor-element-found-in__line">39</span>
  653. </aside>
  654. <code class="phpdocumentor-signature phpdocumentor-code ">
  655. <span class="phpdocumentor-signature__visibility">public</span>
  656. <span class="phpdocumentor-signature__type">int</span>
  657. <span class="phpdocumentor-signature__name">M_FORMAT</span>
  658. = <span class="phpdocumentor-signature__default-value">0b1000000</span>
  659. </code>
  660. </article>
  661. <article class="phpdocumentor-element -constant -public ">
  662. <h4 class="phpdocumentor-element__name" id="constant_M_LOGO">
  663. M_LOGO
  664. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_LOGO" class="headerlink"><i class="fas fa-link"></i></a>
  665. </h4>
  666. <aside class="phpdocumentor-element-found-in">
  667. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  668. :
  669. <span class="phpdocumentor-element-found-in__line">45</span>
  670. </aside>
  671. <code class="phpdocumentor-signature phpdocumentor-code ">
  672. <span class="phpdocumentor-signature__visibility">public</span>
  673. <span class="phpdocumentor-signature__type">int</span>
  674. <span class="phpdocumentor-signature__name">M_LOGO</span>
  675. = <span class="phpdocumentor-signature__default-value">0b1000000000</span>
  676. </code>
  677. </article>
  678. <article class="phpdocumentor-element -constant -public ">
  679. <h4 class="phpdocumentor-element__name" id="constant_M_NULL">
  680. M_NULL
  681. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_NULL" class="headerlink"><i class="fas fa-link"></i></a>
  682. </h4>
  683. <aside class="phpdocumentor-element-found-in">
  684. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  685. :
  686. <span class="phpdocumentor-element-found-in__line">25</span>
  687. </aside>
  688. <code class="phpdocumentor-signature phpdocumentor-code ">
  689. <span class="phpdocumentor-signature__visibility">public</span>
  690. <span class="phpdocumentor-signature__type">int</span>
  691. <span class="phpdocumentor-signature__name">M_NULL</span>
  692. = <span class="phpdocumentor-signature__default-value">0b0</span>
  693. </code>
  694. </article>
  695. <article class="phpdocumentor-element -constant -public ">
  696. <h4 class="phpdocumentor-element__name" id="constant_M_QUIETZONE">
  697. M_QUIETZONE
  698. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_QUIETZONE" class="headerlink"><i class="fas fa-link"></i></a>
  699. </h4>
  700. <aside class="phpdocumentor-element-found-in">
  701. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  702. :
  703. <span class="phpdocumentor-element-found-in__line">43</span>
  704. </aside>
  705. <code class="phpdocumentor-signature phpdocumentor-code ">
  706. <span class="phpdocumentor-signature__visibility">public</span>
  707. <span class="phpdocumentor-signature__type">int</span>
  708. <span class="phpdocumentor-signature__name">M_QUIETZONE</span>
  709. = <span class="phpdocumentor-signature__default-value">0b100000000</span>
  710. </code>
  711. </article>
  712. <article class="phpdocumentor-element -constant -public ">
  713. <h4 class="phpdocumentor-element__name" id="constant_M_SEPARATOR">
  714. M_SEPARATOR
  715. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_SEPARATOR" 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/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  719. :
  720. <span class="phpdocumentor-element-found-in__line">33</span>
  721. </aside>
  722. <code class="phpdocumentor-signature phpdocumentor-code ">
  723. <span class="phpdocumentor-signature__visibility">public</span>
  724. <span class="phpdocumentor-signature__type">int</span>
  725. <span class="phpdocumentor-signature__name">M_SEPARATOR</span>
  726. = <span class="phpdocumentor-signature__default-value">0b1000</span>
  727. </code>
  728. </article>
  729. <article class="phpdocumentor-element -constant -public ">
  730. <h4 class="phpdocumentor-element__name" id="constant_M_TEST">
  731. M_TEST
  732. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_TEST" class="headerlink"><i class="fas fa-link"></i></a>
  733. </h4>
  734. <aside class="phpdocumentor-element-found-in">
  735. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  736. :
  737. <span class="phpdocumentor-element-found-in__line">49</span>
  738. </aside>
  739. <code class="phpdocumentor-signature phpdocumentor-code ">
  740. <span class="phpdocumentor-signature__visibility">public</span>
  741. <span class="phpdocumentor-signature__type">int</span>
  742. <span class="phpdocumentor-signature__name">M_TEST</span>
  743. = <span class="phpdocumentor-signature__default-value">0b11111111111</span>
  744. </code>
  745. </article>
  746. <article class="phpdocumentor-element -constant -public ">
  747. <h4 class="phpdocumentor-element__name" id="constant_M_TIMING">
  748. M_TIMING
  749. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_TIMING" class="headerlink"><i class="fas fa-link"></i></a>
  750. </h4>
  751. <aside class="phpdocumentor-element-found-in">
  752. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  753. :
  754. <span class="phpdocumentor-element-found-in__line">37</span>
  755. </aside>
  756. <code class="phpdocumentor-signature phpdocumentor-code ">
  757. <span class="phpdocumentor-signature__visibility">public</span>
  758. <span class="phpdocumentor-signature__type">int</span>
  759. <span class="phpdocumentor-signature__name">M_TIMING</span>
  760. = <span class="phpdocumentor-signature__default-value">0b100000</span>
  761. </code>
  762. </article>
  763. <article class="phpdocumentor-element -constant -public ">
  764. <h4 class="phpdocumentor-element__name" id="constant_M_VERSION">
  765. M_VERSION
  766. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_M_VERSION" class="headerlink"><i class="fas fa-link"></i></a>
  767. </h4>
  768. <aside class="phpdocumentor-element-found-in">
  769. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  770. :
  771. <span class="phpdocumentor-element-found-in__line">41</span>
  772. </aside>
  773. <code class="phpdocumentor-signature phpdocumentor-code ">
  774. <span class="phpdocumentor-signature__visibility">public</span>
  775. <span class="phpdocumentor-signature__type">int</span>
  776. <span class="phpdocumentor-signature__name">M_VERSION</span>
  777. = <span class="phpdocumentor-signature__default-value">0b10000000</span>
  778. </code>
  779. </article>
  780. <article class="phpdocumentor-element -constant -protected ">
  781. <h4 class="phpdocumentor-element__name" id="constant_neighbours">
  782. neighbours
  783. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#constant_neighbours" class="headerlink"><i class="fas fa-link"></i></a>
  784. </h4>
  785. <aside class="phpdocumentor-element-found-in">
  786. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  787. :
  788. <span class="phpdocumentor-element-found-in__line">60</span>
  789. </aside>
  790. <p class="phpdocumentor-summary">Map of flag =&gt; coord</p>
  791. <code class="phpdocumentor-signature phpdocumentor-code ">
  792. <span class="phpdocumentor-signature__visibility">protected</span>
  793. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  794. <span class="phpdocumentor-signature__name">neighbours</span>
  795. = <span class="phpdocumentor-signature__default-value">[0b1 =&gt; [-1, -1], 0b10 =&gt; [0, -1], 0b100 =&gt; [1, -1], 0b1000 =&gt; [1, 0], 0b10000 =&gt; [1, 1], 0b100000 =&gt; [0, 1], 0b1000000 =&gt; [-1, 1], 0b10000000 =&gt; [-1, 0]]</span>
  796. </code>
  797. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  798. Tags
  799. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  800. </h5>
  801. <dl class="phpdocumentor-tag-list">
  802. <dt class="phpdocumentor-tag-list__entry">
  803. <span class="phpdocumentor-tag__name">see</span>
  804. </dt>
  805. <dd class="phpdocumentor-tag-list__definition">
  806. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_checkNeighbours"><abbr title="\chillerlan\QRCode\Data\QRMatrix::checkNeighbours()">QRMatrix::checkNeighbours()</abbr></a></span>
  807. </dd>
  808. </dl>
  809. </article>
  810. <article class="phpdocumentor-element -constant -private ">
  811. <h4 class="phpdocumentor-element__name" id="constant_DECODE_LOOKUP">
  812. DECODE_LOOKUP
  813. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#constant_DECODE_LOOKUP" 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/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  817. :
  818. <span class="phpdocumentor-element-found-in__line">29</span>
  819. </aside>
  820. <p class="phpdocumentor-summary">See ISO 18004:2006, Annex C, Table C.1</p>
  821. <code class="phpdocumentor-signature phpdocumentor-code ">
  822. <span class="phpdocumentor-signature__visibility">private</span>
  823. <span class="phpdocumentor-signature__type">mixed</span>
  824. <span class="phpdocumentor-signature__name">DECODE_LOOKUP</span>
  825. = <span class="phpdocumentor-signature__default-value">[
  826. 0x5412,
  827. // 0101010000010010
  828. 0x5125,
  829. // 0101000100100101
  830. 0x5e7c,
  831. // 0101111001111100
  832. 0x5b4b,
  833. // 0101101101001011
  834. 0x45f9,
  835. // 0100010111111001
  836. 0x40ce,
  837. // 0100000011001110
  838. 0x4f97,
  839. // 0100111110010111
  840. 0x4aa0,
  841. // 0100101010100000
  842. 0x77c4,
  843. // 0111011111000100
  844. 0x72f3,
  845. // 0111001011110011
  846. 0x7daa,
  847. // 0111110110101010
  848. 0x789d,
  849. // 0111100010011101
  850. 0x662f,
  851. // 0110011000101111
  852. 0x6318,
  853. // 0110001100011000
  854. 0x6c41,
  855. // 0110110001000001
  856. 0x6976,
  857. // 0110100101110110
  858. 0x1689,
  859. // 0001011010001001
  860. 0x13be,
  861. // 0001001110111110
  862. 0x1ce7,
  863. // 0001110011100111
  864. 0x19d0,
  865. // 0001100111010000
  866. 0x762,
  867. // 0000011101100010
  868. 0x255,
  869. // 0000001001010101
  870. 0xd0c,
  871. // 0000110100001100
  872. 0x83b,
  873. // 0000100000111011
  874. 0x355f,
  875. // 0011010101011111
  876. 0x3068,
  877. // 0011000001101000
  878. 0x3f31,
  879. // 0011111100110001
  880. 0x3a06,
  881. // 0011101000000110
  882. 0x24b4,
  883. // 0010010010110100
  884. 0x2183,
  885. // 0010000110000011
  886. 0x2eda,
  887. // 0010111011011010
  888. 0x2bed,
  889. ]</span>
  890. </code>
  891. <section class="phpdocumentor-description"><p>[data bits, sequence after masking]</p>
  892. </section>
  893. <section class="phpdocumentor-description"></section>
  894. </article>
  895. <article class="phpdocumentor-element -constant -private ">
  896. <h4 class="phpdocumentor-element__name" id="constant_FORMAT_INFO_MASK_QR">
  897. FORMAT_INFO_MASK_QR
  898. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#constant_FORMAT_INFO_MASK_QR" class="headerlink"><i class="fas fa-link"></i></a>
  899. </h4>
  900. <aside class="phpdocumentor-element-found-in">
  901. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  902. :
  903. <span class="phpdocumentor-element-found-in__line">64</span>
  904. </aside>
  905. <code class="phpdocumentor-signature phpdocumentor-code ">
  906. <span class="phpdocumentor-signature__visibility">private</span>
  907. <span class="phpdocumentor-signature__type">mixed</span>
  908. <span class="phpdocumentor-signature__name">FORMAT_INFO_MASK_QR</span>
  909. = <span class="phpdocumentor-signature__default-value">0x5412</span>
  910. </code>
  911. <section class="phpdocumentor-description"></section>
  912. <section class="phpdocumentor-description"></section>
  913. </article>
  914. </section>
  915. <section class="phpdocumentor-properties">
  916. <h3 class="phpdocumentor-elements__header" id="properties">
  917. Properties
  918. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  919. </h3>
  920. <article
  921. class="
  922. phpdocumentor-element
  923. -property
  924. -protected
  925. "
  926. >
  927. <h4 class="phpdocumentor-element__name" id="property_eccLevel">
  928. $eccLevel
  929. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#property_eccLevel" class="headerlink"><i class="fas fa-link"></i></a>
  930. <span class="phpdocumentor-element__modifiers">
  931. </span>
  932. </h4>
  933. <aside class="phpdocumentor-element-found-in">
  934. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  935. :
  936. <span class="phpdocumentor-element-found-in__line">79</span>
  937. </aside>
  938. <p class="phpdocumentor-summary">the current ECC level</p>
  939. <code class="phpdocumentor-code phpdocumentor-signature ">
  940. <span class="phpdocumentor-signature__visibility">protected</span>
  941. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>|null</span>
  942. <span class="phpdocumentor-signature__name">$eccLevel</span>
  943. = <span class="phpdocumentor-signature__default-value">null</span></code>
  944. <section class="phpdocumentor-description"></section>
  945. </article>
  946. <article
  947. class="
  948. phpdocumentor-element
  949. -property
  950. -protected
  951. "
  952. >
  953. <h4 class="phpdocumentor-element__name" id="property_maskPattern">
  954. $maskPattern
  955. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#property_maskPattern" class="headerlink"><i class="fas fa-link"></i></a>
  956. <span class="phpdocumentor-element__modifiers">
  957. </span>
  958. </h4>
  959. <aside class="phpdocumentor-element-found-in">
  960. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  961. :
  962. <span class="phpdocumentor-element-found-in__line">74</span>
  963. </aside>
  964. <p class="phpdocumentor-summary">the used mask pattern, set via QRMatrix::mask()</p>
  965. <code class="phpdocumentor-code phpdocumentor-signature ">
  966. <span class="phpdocumentor-signature__visibility">protected</span>
  967. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Common-MaskPattern.html"><abbr title="\chillerlan\QRCode\Common\MaskPattern">MaskPattern</abbr></a>|null</span>
  968. <span class="phpdocumentor-signature__name">$maskPattern</span>
  969. = <span class="phpdocumentor-signature__default-value">null</span></code>
  970. <section class="phpdocumentor-description"></section>
  971. </article>
  972. <article
  973. class="
  974. phpdocumentor-element
  975. -property
  976. -protected
  977. "
  978. >
  979. <h4 class="phpdocumentor-element__name" id="property_matrix">
  980. $matrix
  981. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  982. <span class="phpdocumentor-element__modifiers">
  983. </span>
  984. </h4>
  985. <aside class="phpdocumentor-element-found-in">
  986. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  987. :
  988. <span class="phpdocumentor-element-found-in__line">96</span>
  989. </aside>
  990. <p class="phpdocumentor-summary">the actual matrix data array</p>
  991. <code class="phpdocumentor-code phpdocumentor-signature ">
  992. <span class="phpdocumentor-signature__visibility">protected</span>
  993. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  994. <span class="phpdocumentor-signature__name">$matrix</span>
  995. </code>
  996. </article>
  997. <article
  998. class="
  999. phpdocumentor-element
  1000. -property
  1001. -protected
  1002. "
  1003. >
  1004. <h4 class="phpdocumentor-element__name" id="property_moduleCount">
  1005. $moduleCount
  1006. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#property_moduleCount" class="headerlink"><i class="fas fa-link"></i></a>
  1007. <span class="phpdocumentor-element__modifiers">
  1008. </span>
  1009. </h4>
  1010. <aside class="phpdocumentor-element-found-in">
  1011. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1012. :
  1013. <span class="phpdocumentor-element-found-in__line">89</span>
  1014. </aside>
  1015. <p class="phpdocumentor-summary">the size (side length) of the matrix, including quiet zone (if created)</p>
  1016. <code class="phpdocumentor-code phpdocumentor-signature ">
  1017. <span class="phpdocumentor-signature__visibility">protected</span>
  1018. <span class="phpdocumentor-signature__type">int</span>
  1019. <span class="phpdocumentor-signature__name">$moduleCount</span>
  1020. </code>
  1021. <section class="phpdocumentor-description"></section>
  1022. </article>
  1023. <article
  1024. class="
  1025. phpdocumentor-element
  1026. -property
  1027. -protected
  1028. "
  1029. >
  1030. <h4 class="phpdocumentor-element__name" id="property_version">
  1031. $version
  1032. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#property_version" class="headerlink"><i class="fas fa-link"></i></a>
  1033. <span class="phpdocumentor-element__modifiers">
  1034. </span>
  1035. </h4>
  1036. <aside class="phpdocumentor-element-found-in">
  1037. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1038. :
  1039. <span class="phpdocumentor-element-found-in__line">84</span>
  1040. </aside>
  1041. <p class="phpdocumentor-summary">a Version instance</p>
  1042. <code class="phpdocumentor-code phpdocumentor-signature ">
  1043. <span class="phpdocumentor-signature__visibility">protected</span>
  1044. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a>|null</span>
  1045. <span class="phpdocumentor-signature__name">$version</span>
  1046. = <span class="phpdocumentor-signature__default-value">null</span></code>
  1047. <section class="phpdocumentor-description"></section>
  1048. </article>
  1049. <article
  1050. class="
  1051. phpdocumentor-element
  1052. -property
  1053. -private
  1054. "
  1055. >
  1056. <h4 class="phpdocumentor-element__name" id="property_mirror">
  1057. $mirror
  1058. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#property_mirror" class="headerlink"><i class="fas fa-link"></i></a>
  1059. <span class="phpdocumentor-element__modifiers">
  1060. </span>
  1061. </h4>
  1062. <aside class="phpdocumentor-element-found-in">
  1063. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  1064. :
  1065. <span class="phpdocumentor-element-found-in__line">66</span>
  1066. </aside>
  1067. <code class="phpdocumentor-code phpdocumentor-signature ">
  1068. <span class="phpdocumentor-signature__visibility">private</span>
  1069. <span class="phpdocumentor-signature__type">bool</span>
  1070. <span class="phpdocumentor-signature__name">$mirror</span>
  1071. = <span class="phpdocumentor-signature__default-value">false</span></code>
  1072. <section class="phpdocumentor-description"></section>
  1073. <section class="phpdocumentor-description"></section>
  1074. </article>
  1075. </section>
  1076. <section class="phpdocumentor-methods">
  1077. <h3 class="phpdocumentor-elements__header" id="methods">
  1078. Methods
  1079. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  1080. </h3>
  1081. <article
  1082. class="phpdocumentor-element
  1083. -method
  1084. -public
  1085. "
  1086. >
  1087. <h4 class="phpdocumentor-element__name" id="method___construct">
  1088. __construct()
  1089. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  1090. </h4>
  1091. <aside class="phpdocumentor-element-found-in">
  1092. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  1093. :
  1094. <span class="phpdocumentor-element-found-in__line">71</span>
  1095. </aside>
  1096. <p class="phpdocumentor-summary">QRMatrix constructor.</p>
  1097. <code class="phpdocumentor-code phpdocumentor-signature ">
  1098. <span class="phpdocumentor-signature__visibility">public</span>
  1099. <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">$dimension</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  1100. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1101. <dl class="phpdocumentor-argument-list">
  1102. <dt class="phpdocumentor-argument-list__entry">
  1103. <span class="phpdocumentor-signature__argument__name">$dimension</span>
  1104. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1105. </dt>
  1106. <dd class="phpdocumentor-argument-list__definition">
  1107. <section class="phpdocumentor-description"></section>
  1108. </dd>
  1109. </dl>
  1110. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1111. Tags
  1112. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1113. </h5>
  1114. <dl class="phpdocumentor-tag-list">
  1115. <dt class="phpdocumentor-tag-list__entry">
  1116. <span class="phpdocumentor-tag__name">noinspection</span>
  1117. </dt>
  1118. <dd class="phpdocumentor-tag-list__definition">
  1119. <section class="phpdocumentor-description"><p>PhpMissingParentConstructorInspection</p>
  1120. </section>
  1121. </dd>
  1122. </dl>
  1123. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1124. <span class="phpdocumentor-signature__response_type">mixed</span>
  1125. &mdash;
  1126. </article>
  1127. <article
  1128. class="phpdocumentor-element
  1129. -method
  1130. -public
  1131. "
  1132. >
  1133. <h4 class="phpdocumentor-element__name" id="method_check">
  1134. check()
  1135. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_check" class="headerlink"><i class="fas fa-link"></i></a>
  1136. </h4>
  1137. <aside class="phpdocumentor-element-found-in">
  1138. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1139. :
  1140. <span class="phpdocumentor-element-found-in__line">256</span>
  1141. </aside>
  1142. <p class="phpdocumentor-summary">Checks whether a module is true (dark) or false (light)</p>
  1143. <code class="phpdocumentor-code phpdocumentor-signature ">
  1144. <span class="phpdocumentor-signature__visibility">public</span>
  1145. <span class="phpdocumentor-signature__name">check</span><span>(</span><span class="phpdocumentor-signature__argument"><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">$y</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  1146. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1147. <dl class="phpdocumentor-argument-list">
  1148. <dt class="phpdocumentor-argument-list__entry">
  1149. <span class="phpdocumentor-signature__argument__name">$x</span>
  1150. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1151. </dt>
  1152. <dd class="phpdocumentor-argument-list__definition">
  1153. <section class="phpdocumentor-description"></section>
  1154. </dd>
  1155. <dt class="phpdocumentor-argument-list__entry">
  1156. <span class="phpdocumentor-signature__argument__name">$y</span>
  1157. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1158. </dt>
  1159. <dd class="phpdocumentor-argument-list__definition">
  1160. <section class="phpdocumentor-description"></section>
  1161. </dd>
  1162. </dl>
  1163. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1164. <span class="phpdocumentor-signature__response_type">bool</span>
  1165. &mdash;
  1166. </article>
  1167. <article
  1168. class="phpdocumentor-element
  1169. -method
  1170. -public
  1171. "
  1172. >
  1173. <h4 class="phpdocumentor-element__name" id="method_checkNeighbours">
  1174. checkNeighbours()
  1175. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_checkNeighbours" class="headerlink"><i class="fas fa-link"></i></a>
  1176. </h4>
  1177. <aside class="phpdocumentor-element-found-in">
  1178. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1179. :
  1180. <span class="phpdocumentor-element-found-in__line">270</span>
  1181. </aside>
  1182. <p class="phpdocumentor-summary">Checks the status neighbouring modules of the given module at ($x, $y) and returns a bitmask with the results.</p>
  1183. <code class="phpdocumentor-code phpdocumentor-signature ">
  1184. <span class="phpdocumentor-signature__visibility">public</span>
  1185. <span class="phpdocumentor-signature__name">checkNeighbours</span><span>(</span><span class="phpdocumentor-signature__argument"><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">$y</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$M_TYPE_VALUE</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  1186. <section class="phpdocumentor-description"><p>The 8 flags of the bitmask represent the status of each of the neighbouring fields,
  1187. starting with the lowest bit for top left, going clockwise:</p>
  1188. <p>1 2 3
  1189. 8 # 4
  1190. 7 6 5</p>
  1191. </section>
  1192. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1193. <dl class="phpdocumentor-argument-list">
  1194. <dt class="phpdocumentor-argument-list__entry">
  1195. <span class="phpdocumentor-signature__argument__name">$x</span>
  1196. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1197. </dt>
  1198. <dd class="phpdocumentor-argument-list__definition">
  1199. <section class="phpdocumentor-description"></section>
  1200. </dd>
  1201. <dt class="phpdocumentor-argument-list__entry">
  1202. <span class="phpdocumentor-signature__argument__name">$y</span>
  1203. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1204. </dt>
  1205. <dd class="phpdocumentor-argument-list__definition">
  1206. <section class="phpdocumentor-description"></section>
  1207. </dd>
  1208. <dt class="phpdocumentor-argument-list__entry">
  1209. <span class="phpdocumentor-signature__argument__name">$M_TYPE_VALUE</span>
  1210. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1211. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  1212. <dd class="phpdocumentor-argument-list__definition">
  1213. <section class="phpdocumentor-description"></section>
  1214. </dd>
  1215. </dl>
  1216. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1217. <span class="phpdocumentor-signature__response_type">int</span>
  1218. &mdash;
  1219. </article>
  1220. <article
  1221. class="phpdocumentor-element
  1222. -method
  1223. -public
  1224. "
  1225. >
  1226. <h4 class="phpdocumentor-element__name" id="method_checkType">
  1227. checkType()
  1228. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_checkType" class="headerlink"><i class="fas fa-link"></i></a>
  1229. </h4>
  1230. <aside class="phpdocumentor-element-found-in">
  1231. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1232. :
  1233. <span class="phpdocumentor-element-found-in__line">229</span>
  1234. </aside>
  1235. <p class="phpdocumentor-summary">Checks whether a module is of the given $M_TYPE</p>
  1236. <code class="phpdocumentor-code phpdocumentor-signature ">
  1237. <span class="phpdocumentor-signature__visibility">public</span>
  1238. <span class="phpdocumentor-signature__name">checkType</span><span>(</span><span class="phpdocumentor-signature__argument"><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">$y</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">$M_TYPE</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  1239. <section class="phpdocumentor-description"><p>true =&gt; $value &amp; $M_TYPE === $M_TYPE</p>
  1240. </section>
  1241. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1242. <dl class="phpdocumentor-argument-list">
  1243. <dt class="phpdocumentor-argument-list__entry">
  1244. <span class="phpdocumentor-signature__argument__name">$x</span>
  1245. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1246. </dt>
  1247. <dd class="phpdocumentor-argument-list__definition">
  1248. <section class="phpdocumentor-description"></section>
  1249. </dd>
  1250. <dt class="phpdocumentor-argument-list__entry">
  1251. <span class="phpdocumentor-signature__argument__name">$y</span>
  1252. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1253. </dt>
  1254. <dd class="phpdocumentor-argument-list__definition">
  1255. <section class="phpdocumentor-description"></section>
  1256. </dd>
  1257. <dt class="phpdocumentor-argument-list__entry">
  1258. <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
  1259. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1260. </dt>
  1261. <dd class="phpdocumentor-argument-list__definition">
  1262. <section class="phpdocumentor-description"></section>
  1263. </dd>
  1264. </dl>
  1265. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1266. <span class="phpdocumentor-signature__response_type">bool</span>
  1267. &mdash;
  1268. </article>
  1269. <article
  1270. class="phpdocumentor-element
  1271. -method
  1272. -public
  1273. "
  1274. >
  1275. <h4 class="phpdocumentor-element__name" id="method_checkTypeNotIn">
  1276. checkTypeNotIn()
  1277. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_checkTypeNotIn" class="headerlink"><i class="fas fa-link"></i></a>
  1278. </h4>
  1279. <aside class="phpdocumentor-element-found-in">
  1280. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1281. :
  1282. <span class="phpdocumentor-element-found-in__line">242</span>
  1283. </aside>
  1284. <p class="phpdocumentor-summary">checks whether the module at ($x, $y) is not in the given array of $M_TYPES,
  1285. returns true if no matches are found, otherwise false.</p>
  1286. <code class="phpdocumentor-code phpdocumentor-signature ">
  1287. <span class="phpdocumentor-signature__visibility">public</span>
  1288. <span class="phpdocumentor-signature__name">checkTypeNotIn</span><span>(</span><span class="phpdocumentor-signature__argument"><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">$y</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$M_TYPES</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  1289. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1290. <dl class="phpdocumentor-argument-list">
  1291. <dt class="phpdocumentor-argument-list__entry">
  1292. <span class="phpdocumentor-signature__argument__name">$x</span>
  1293. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1294. </dt>
  1295. <dd class="phpdocumentor-argument-list__definition">
  1296. <section class="phpdocumentor-description"></section>
  1297. </dd>
  1298. <dt class="phpdocumentor-argument-list__entry">
  1299. <span class="phpdocumentor-signature__argument__name">$y</span>
  1300. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1301. </dt>
  1302. <dd class="phpdocumentor-argument-list__definition">
  1303. <section class="phpdocumentor-description"></section>
  1304. </dd>
  1305. <dt class="phpdocumentor-argument-list__entry">
  1306. <span class="phpdocumentor-signature__argument__name">$M_TYPES</span>
  1307. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  1308. </dt>
  1309. <dd class="phpdocumentor-argument-list__definition">
  1310. <section class="phpdocumentor-description"></section>
  1311. </dd>
  1312. </dl>
  1313. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1314. <span class="phpdocumentor-signature__response_type">bool</span>
  1315. &mdash;
  1316. </article>
  1317. <article
  1318. class="phpdocumentor-element
  1319. -method
  1320. -public
  1321. "
  1322. >
  1323. <h4 class="phpdocumentor-element__name" id="method_eccLevel">
  1324. eccLevel()
  1325. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_eccLevel" class="headerlink"><i class="fas fa-link"></i></a>
  1326. </h4>
  1327. <aside class="phpdocumentor-element-found-in">
  1328. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1329. :
  1330. <span class="phpdocumentor-element-found-in__line">165</span>
  1331. </aside>
  1332. <p class="phpdocumentor-summary">Returns the current ECC level</p>
  1333. <code class="phpdocumentor-code phpdocumentor-signature ">
  1334. <span class="phpdocumentor-signature__visibility">public</span>
  1335. <span class="phpdocumentor-signature__name">eccLevel</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>|null</span></code>
  1336. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1337. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a>|null</span>
  1338. &mdash;
  1339. </article>
  1340. <article
  1341. class="phpdocumentor-element
  1342. -method
  1343. -public
  1344. "
  1345. >
  1346. <h4 class="phpdocumentor-element__name" id="method_flip">
  1347. flip()
  1348. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_flip" class="headerlink"><i class="fas fa-link"></i></a>
  1349. </h4>
  1350. <aside class="phpdocumentor-element-found-in">
  1351. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1352. :
  1353. <span class="phpdocumentor-element-found-in__line">215</span>
  1354. </aside>
  1355. <p class="phpdocumentor-summary">Flips the value of the module</p>
  1356. <code class="phpdocumentor-code phpdocumentor-signature ">
  1357. <span class="phpdocumentor-signature__visibility">public</span>
  1358. <span class="phpdocumentor-signature__name">flip</span><span>(</span><span class="phpdocumentor-signature__argument"><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">$y</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1359. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1360. <dl class="phpdocumentor-argument-list">
  1361. <dt class="phpdocumentor-argument-list__entry">
  1362. <span class="phpdocumentor-signature__argument__name">$x</span>
  1363. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1364. </dt>
  1365. <dd class="phpdocumentor-argument-list__definition">
  1366. <section class="phpdocumentor-description"></section>
  1367. </dd>
  1368. <dt class="phpdocumentor-argument-list__entry">
  1369. <span class="phpdocumentor-signature__argument__name">$y</span>
  1370. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1371. </dt>
  1372. <dd class="phpdocumentor-argument-list__definition">
  1373. <section class="phpdocumentor-description"></section>
  1374. </dd>
  1375. </dl>
  1376. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1377. <span class="phpdocumentor-signature__response_type">self</span>
  1378. &mdash;
  1379. </article>
  1380. <article
  1381. class="phpdocumentor-element
  1382. -method
  1383. -public
  1384. "
  1385. >
  1386. <h4 class="phpdocumentor-element__name" id="method_get">
  1387. get()
  1388. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_get" class="headerlink"><i class="fas fa-link"></i></a>
  1389. </h4>
  1390. <aside class="phpdocumentor-element-found-in">
  1391. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1392. :
  1393. <span class="phpdocumentor-element-found-in__line">188</span>
  1394. </aside>
  1395. <p class="phpdocumentor-summary">Returns the value of the module at position [$x, $y] or -1 if the coordinate is outside of the matrix</p>
  1396. <code class="phpdocumentor-code phpdocumentor-signature ">
  1397. <span class="phpdocumentor-signature__visibility">public</span>
  1398. <span class="phpdocumentor-signature__name">get</span><span>(</span><span class="phpdocumentor-signature__argument"><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">$y</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  1399. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1400. <dl class="phpdocumentor-argument-list">
  1401. <dt class="phpdocumentor-argument-list__entry">
  1402. <span class="phpdocumentor-signature__argument__name">$x</span>
  1403. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1404. </dt>
  1405. <dd class="phpdocumentor-argument-list__definition">
  1406. <section class="phpdocumentor-description"></section>
  1407. </dd>
  1408. <dt class="phpdocumentor-argument-list__entry">
  1409. <span class="phpdocumentor-signature__argument__name">$y</span>
  1410. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1411. </dt>
  1412. <dd class="phpdocumentor-argument-list__definition">
  1413. <section class="phpdocumentor-description"></section>
  1414. </dd>
  1415. </dl>
  1416. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1417. <span class="phpdocumentor-signature__response_type">int</span>
  1418. &mdash;
  1419. </article>
  1420. <article
  1421. class="phpdocumentor-element
  1422. -method
  1423. -public
  1424. "
  1425. >
  1426. <h4 class="phpdocumentor-element__name" id="method_initFunctionalPatterns">
  1427. initFunctionalPatterns()
  1428. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_initFunctionalPatterns" class="headerlink"><i class="fas fa-link"></i></a>
  1429. </h4>
  1430. <aside class="phpdocumentor-element-found-in">
  1431. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1432. :
  1433. <span class="phpdocumentor-element-found-in__line">119</span>
  1434. </aside>
  1435. <p class="phpdocumentor-summary">shortcut to initialize the functional patterns</p>
  1436. <code class="phpdocumentor-code phpdocumentor-signature ">
  1437. <span class="phpdocumentor-signature__visibility">public</span>
  1438. <span class="phpdocumentor-signature__name">initFunctionalPatterns</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1439. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1440. <span class="phpdocumentor-signature__response_type">self</span>
  1441. &mdash;
  1442. </article>
  1443. <article
  1444. class="phpdocumentor-element
  1445. -method
  1446. -public
  1447. "
  1448. >
  1449. <h4 class="phpdocumentor-element__name" id="method_mask">
  1450. mask()
  1451. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_mask" class="headerlink"><i class="fas fa-link"></i></a>
  1452. </h4>
  1453. <aside class="phpdocumentor-element-found-in">
  1454. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1455. :
  1456. <span class="phpdocumentor-element-found-in__line">639</span>
  1457. </aside>
  1458. <p class="phpdocumentor-summary">Applies/reverses the mask pattern</p>
  1459. <code class="phpdocumentor-code phpdocumentor-signature ">
  1460. <span class="phpdocumentor-signature__visibility">public</span>
  1461. <span class="phpdocumentor-signature__name">mask</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1462. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 Section 8.8.1</p>
  1463. </section>
  1464. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1465. <span class="phpdocumentor-signature__response_type">self</span>
  1466. &mdash;
  1467. </article>
  1468. <article
  1469. class="phpdocumentor-element
  1470. -method
  1471. -public
  1472. "
  1473. >
  1474. <h4 class="phpdocumentor-element__name" id="method_maskPattern">
  1475. maskPattern()
  1476. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_maskPattern" class="headerlink"><i class="fas fa-link"></i></a>
  1477. </h4>
  1478. <aside class="phpdocumentor-element-found-in">
  1479. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1480. :
  1481. <span class="phpdocumentor-element-found-in__line">172</span>
  1482. </aside>
  1483. <p class="phpdocumentor-summary">Returns the current mask pattern</p>
  1484. <code class="phpdocumentor-code phpdocumentor-signature ">
  1485. <span class="phpdocumentor-signature__visibility">public</span>
  1486. <span class="phpdocumentor-signature__name">maskPattern</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-MaskPattern.html"><abbr title="\chillerlan\QRCode\Common\MaskPattern">MaskPattern</abbr></a>|null</span></code>
  1487. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1488. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-MaskPattern.html"><abbr title="\chillerlan\QRCode\Common\MaskPattern">MaskPattern</abbr></a>|null</span>
  1489. &mdash;
  1490. </article>
  1491. <article
  1492. class="phpdocumentor-element
  1493. -method
  1494. -public
  1495. "
  1496. >
  1497. <h4 class="phpdocumentor-element__name" id="method_matrix">
  1498. matrix()
  1499. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  1500. </h4>
  1501. <aside class="phpdocumentor-element-found-in">
  1502. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1503. :
  1504. <span class="phpdocumentor-element-found-in__line">136</span>
  1505. </aside>
  1506. <p class="phpdocumentor-summary">Returns the data matrix, returns a pure boolean representation if $boolean is set to true</p>
  1507. <code class="phpdocumentor-code phpdocumentor-signature ">
  1508. <span class="phpdocumentor-signature__visibility">public</span>
  1509. <span class="phpdocumentor-signature__name">matrix</span><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">$boolean</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;|array&lt;string|int, array&lt;string|int, bool&gt;&gt;</span></code>
  1510. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1511. <dl class="phpdocumentor-argument-list">
  1512. <dt class="phpdocumentor-argument-list__entry">
  1513. <span class="phpdocumentor-signature__argument__name">$boolean</span>
  1514. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  1515. = <span class="phpdocumentor-signature__argument__default-value">false</span> </dt>
  1516. <dd class="phpdocumentor-argument-list__definition">
  1517. <section class="phpdocumentor-description"></section>
  1518. </dd>
  1519. </dl>
  1520. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1521. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;|array&lt;string|int, array&lt;string|int, bool&gt;&gt;</span>
  1522. &mdash;
  1523. </article>
  1524. <article
  1525. class="phpdocumentor-element
  1526. -method
  1527. -public
  1528. "
  1529. >
  1530. <h4 class="phpdocumentor-element__name" id="method_mirror">
  1531. mirror()
  1532. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_mirror" class="headerlink"><i class="fas fa-link"></i></a>
  1533. </h4>
  1534. <aside class="phpdocumentor-element-found-in">
  1535. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  1536. :
  1537. <span class="phpdocumentor-element-found-in__line">96</span>
  1538. </aside>
  1539. <p class="phpdocumentor-summary">Mirror the bit matrix in order to attempt a second reading.</p>
  1540. <code class="phpdocumentor-code phpdocumentor-signature ">
  1541. <span class="phpdocumentor-signature__visibility">public</span>
  1542. <span class="phpdocumentor-signature__name">mirror</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1543. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1544. <span class="phpdocumentor-signature__response_type">self</span>
  1545. &mdash;
  1546. </article>
  1547. <article
  1548. class="phpdocumentor-element
  1549. -method
  1550. -public
  1551. "
  1552. >
  1553. <h4 class="phpdocumentor-element__name" id="method_readCodewords">
  1554. readCodewords()
  1555. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_readCodewords" class="headerlink"><i class="fas fa-link"></i></a>
  1556. </h4>
  1557. <aside class="phpdocumentor-element-found-in">
  1558. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  1559. :
  1560. <span class="phpdocumentor-element-found-in__line">118</span>
  1561. </aside>
  1562. <p class="phpdocumentor-summary">Reads the bits in the BitMatrix representing the finder pattern in the
  1563. correct order in order to reconstruct the codewords bytes contained within the
  1564. QR Code.</p>
  1565. <code class="phpdocumentor-code phpdocumentor-signature ">
  1566. <span class="phpdocumentor-signature__visibility">public</span>
  1567. <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>
  1568. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1569. Tags
  1570. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1571. </h5>
  1572. <dl class="phpdocumentor-tag-list">
  1573. <dt class="phpdocumentor-tag-list__entry">
  1574. <span class="phpdocumentor-tag__name">throws</span>
  1575. </dt>
  1576. <dd class="phpdocumentor-tag-list__definition">
  1577. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Decoder-QRCodeDecoderException.html"><abbr title="\chillerlan\QRCode\Decoder\QRCodeDecoderException">QRCodeDecoderException</abbr></a></span>
  1578. <section class="phpdocumentor-description"><p>if the exact number of bytes expected is not read</p>
  1579. </section>
  1580. </dd>
  1581. </dl>
  1582. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1583. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  1584. &mdash;
  1585. <section class="phpdocumentor-description"><p>bytes encoded within the QR Code</p>
  1586. </section>
  1587. </article>
  1588. <article
  1589. class="phpdocumentor-element
  1590. -method
  1591. -public
  1592. "
  1593. >
  1594. <h4 class="phpdocumentor-element__name" id="method_set">
  1595. set()
  1596. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_set" class="headerlink"><i class="fas fa-link"></i></a>
  1597. </h4>
  1598. <aside class="phpdocumentor-element-found-in">
  1599. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1600. :
  1601. <span class="phpdocumentor-element-found-in__line">203</span>
  1602. </aside>
  1603. <p class="phpdocumentor-summary">Sets the $M_TYPE value for the module at position [$x, $y]</p>
  1604. <code class="phpdocumentor-code phpdocumentor-signature ">
  1605. <span class="phpdocumentor-signature__visibility">public</span>
  1606. <span class="phpdocumentor-signature__name">set</span><span>(</span><span class="phpdocumentor-signature__argument"><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">$y</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">$value</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">$M_TYPE</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1607. <section class="phpdocumentor-description"><p>true =&gt; $M_TYPE | 0x800
  1608. false =&gt; $M_TYPE</p>
  1609. </section>
  1610. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1611. <dl class="phpdocumentor-argument-list">
  1612. <dt class="phpdocumentor-argument-list__entry">
  1613. <span class="phpdocumentor-signature__argument__name">$x</span>
  1614. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1615. </dt>
  1616. <dd class="phpdocumentor-argument-list__definition">
  1617. <section class="phpdocumentor-description"></section>
  1618. </dd>
  1619. <dt class="phpdocumentor-argument-list__entry">
  1620. <span class="phpdocumentor-signature__argument__name">$y</span>
  1621. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1622. </dt>
  1623. <dd class="phpdocumentor-argument-list__definition">
  1624. <section class="phpdocumentor-description"></section>
  1625. </dd>
  1626. <dt class="phpdocumentor-argument-list__entry">
  1627. <span class="phpdocumentor-signature__argument__name">$value</span>
  1628. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  1629. </dt>
  1630. <dd class="phpdocumentor-argument-list__definition">
  1631. <section class="phpdocumentor-description"></section>
  1632. </dd>
  1633. <dt class="phpdocumentor-argument-list__entry">
  1634. <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
  1635. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1636. </dt>
  1637. <dd class="phpdocumentor-argument-list__definition">
  1638. <section class="phpdocumentor-description"></section>
  1639. </dd>
  1640. </dl>
  1641. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1642. <span class="phpdocumentor-signature__response_type">self</span>
  1643. &mdash;
  1644. </article>
  1645. <article
  1646. class="phpdocumentor-element
  1647. -method
  1648. -public
  1649. "
  1650. >
  1651. <h4 class="phpdocumentor-element__name" id="method_setAlignmentPattern">
  1652. setAlignmentPattern()
  1653. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setAlignmentPattern" class="headerlink"><i class="fas fa-link"></i></a>
  1654. </h4>
  1655. <aside class="phpdocumentor-element-found-in">
  1656. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1657. :
  1658. <span class="phpdocumentor-element-found-in__line">370</span>
  1659. </aside>
  1660. <p class="phpdocumentor-summary">Draws the 5x5 alignment patterns</p>
  1661. <code class="phpdocumentor-code phpdocumentor-signature ">
  1662. <span class="phpdocumentor-signature__visibility">public</span>
  1663. <span class="phpdocumentor-signature__name">setAlignmentPattern</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1664. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 Section 7.3.5</p>
  1665. </section>
  1666. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1667. <span class="phpdocumentor-signature__response_type">self</span>
  1668. &mdash;
  1669. </article>
  1670. <article
  1671. class="phpdocumentor-element
  1672. -method
  1673. -public
  1674. "
  1675. >
  1676. <h4 class="phpdocumentor-element__name" id="method_setDarkModule">
  1677. setDarkModule()
  1678. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setDarkModule" class="headerlink"><i class="fas fa-link"></i></a>
  1679. </h4>
  1680. <aside class="phpdocumentor-element-found-in">
  1681. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1682. :
  1683. <span class="phpdocumentor-element-found-in__line">294</span>
  1684. </aside>
  1685. <p class="phpdocumentor-summary">Sets the &quot;dark module&quot;, that is always on the same position 1x1px away from the bottom left finder</p>
  1686. <code class="phpdocumentor-code phpdocumentor-signature ">
  1687. <span class="phpdocumentor-signature__visibility">public</span>
  1688. <span class="phpdocumentor-signature__name">setDarkModule</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1689. <section class="phpdocumentor-description"><p>4 * version + 9 or moduleCount - 8</p>
  1690. </section>
  1691. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1692. <span class="phpdocumentor-signature__response_type">self</span>
  1693. &mdash;
  1694. </article>
  1695. <article
  1696. class="phpdocumentor-element
  1697. -method
  1698. -public
  1699. "
  1700. >
  1701. <h4 class="phpdocumentor-element__name" id="method_setFinderPattern">
  1702. setFinderPattern()
  1703. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setFinderPattern" class="headerlink"><i class="fas fa-link"></i></a>
  1704. </h4>
  1705. <aside class="phpdocumentor-element-found-in">
  1706. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1707. :
  1708. <span class="phpdocumentor-element-found-in__line">305</span>
  1709. </aside>
  1710. <p class="phpdocumentor-summary">Draws the 7x7 finder patterns in the corners top left/right and bottom left</p>
  1711. <code class="phpdocumentor-code phpdocumentor-signature ">
  1712. <span class="phpdocumentor-signature__visibility">public</span>
  1713. <span class="phpdocumentor-signature__name">setFinderPattern</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1714. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 Section 7.3.2</p>
  1715. </section>
  1716. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1717. <span class="phpdocumentor-signature__response_type">self</span>
  1718. &mdash;
  1719. </article>
  1720. <article
  1721. class="phpdocumentor-element
  1722. -method
  1723. -public
  1724. "
  1725. >
  1726. <h4 class="phpdocumentor-element__name" id="method_setFormatInfo">
  1727. setFormatInfo()
  1728. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setFormatInfo" class="headerlink"><i class="fas fa-link"></i></a>
  1729. </h4>
  1730. <aside class="phpdocumentor-element-found-in">
  1731. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1732. :
  1733. <span class="phpdocumentor-element-found-in__line">447</span>
  1734. </aside>
  1735. <p class="phpdocumentor-summary">Draws the format info along the finder patterns</p>
  1736. <code class="phpdocumentor-code phpdocumentor-signature ">
  1737. <span class="phpdocumentor-signature__visibility">public</span>
  1738. <span class="phpdocumentor-signature__name">setFormatInfo</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1739. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 Section 8.9</p>
  1740. </section>
  1741. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1742. <span class="phpdocumentor-signature__response_type">self</span>
  1743. &mdash;
  1744. </article>
  1745. <article
  1746. class="phpdocumentor-element
  1747. -method
  1748. -public
  1749. "
  1750. >
  1751. <h4 class="phpdocumentor-element__name" id="method_setLogoSpace">
  1752. setLogoSpace()
  1753. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_setLogoSpace" class="headerlink"><i class="fas fa-link"></i></a>
  1754. </h4>
  1755. <aside class="phpdocumentor-element-found-in">
  1756. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  1757. :
  1758. <span class="phpdocumentor-element-found-in__line">432</span>
  1759. </aside>
  1760. <p class="phpdocumentor-summary">Clears a space of $width * $height in order to add a logo or text.</p>
  1761. <code class="phpdocumentor-code phpdocumentor-signature ">
  1762. <span class="phpdocumentor-signature__visibility">public</span>
  1763. <span class="phpdocumentor-signature__name">setLogoSpace</span><span>(</span><span class="phpdocumentor-signature__argument"><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">$height</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$startX</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$startY</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1764. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1765. <dl class="phpdocumentor-argument-list">
  1766. <dt class="phpdocumentor-argument-list__entry">
  1767. <span class="phpdocumentor-signature__argument__name">$width</span>
  1768. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1769. </dt>
  1770. <dd class="phpdocumentor-argument-list__definition">
  1771. <section class="phpdocumentor-description"></section>
  1772. </dd>
  1773. <dt class="phpdocumentor-argument-list__entry">
  1774. <span class="phpdocumentor-signature__argument__name">$height</span>
  1775. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1776. </dt>
  1777. <dd class="phpdocumentor-argument-list__definition">
  1778. <section class="phpdocumentor-description"></section>
  1779. </dd>
  1780. <dt class="phpdocumentor-argument-list__entry">
  1781. <span class="phpdocumentor-signature__argument__name">$startX</span>
  1782. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1783. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  1784. <dd class="phpdocumentor-argument-list__definition">
  1785. <section class="phpdocumentor-description"></section>
  1786. </dd>
  1787. <dt class="phpdocumentor-argument-list__entry">
  1788. <span class="phpdocumentor-signature__argument__name">$startY</span>
  1789. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1790. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  1791. <dd class="phpdocumentor-argument-list__definition">
  1792. <section class="phpdocumentor-description"></section>
  1793. </dd>
  1794. </dl>
  1795. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1796. Tags
  1797. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1798. </h5>
  1799. <dl class="phpdocumentor-tag-list">
  1800. <dt class="phpdocumentor-tag-list__entry">
  1801. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  1802. </dt>
  1803. <dd class="phpdocumentor-tag-list__definition">
  1804. </dd>
  1805. <dt class="phpdocumentor-tag-list__entry">
  1806. <span class="phpdocumentor-tag__name">throws</span>
  1807. </dt>
  1808. <dd class="phpdocumentor-tag-list__definition">
  1809. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  1810. </dd>
  1811. </dl>
  1812. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1813. <span class="phpdocumentor-signature__response_type">self</span>
  1814. &mdash;
  1815. </article>
  1816. <article
  1817. class="phpdocumentor-element
  1818. -method
  1819. -public
  1820. "
  1821. >
  1822. <h4 class="phpdocumentor-element__name" id="method_setMirror">
  1823. setMirror()
  1824. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_setMirror" class="headerlink"><i class="fas fa-link"></i></a>
  1825. </h4>
  1826. <aside class="phpdocumentor-element-found-in">
  1827. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  1828. :
  1829. <span class="phpdocumentor-element-found-in__line">84</span>
  1830. </aside>
  1831. <p class="phpdocumentor-summary">Prepare the parser for a mirrored operation.</p>
  1832. <code class="phpdocumentor-code phpdocumentor-signature ">
  1833. <span class="phpdocumentor-signature__visibility">public</span>
  1834. <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">self</span></code>
  1835. <section class="phpdocumentor-description"><p>This flag has effect only on the readFormatInformation() and the
  1836. readVersion() methods. Before proceeding with readCodewords() the
  1837. mirror() method should be called.</p>
  1838. </section>
  1839. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1840. <dl class="phpdocumentor-argument-list">
  1841. <dt class="phpdocumentor-argument-list__entry">
  1842. <span class="phpdocumentor-signature__argument__name">$mirror</span>
  1843. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  1844. </dt>
  1845. <dd class="phpdocumentor-argument-list__definition">
  1846. <section class="phpdocumentor-description"><p>Whether to read version and format information mirrored.</p>
  1847. </section>
  1848. </dd>
  1849. </dl>
  1850. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1851. <span class="phpdocumentor-signature__response_type">self</span>
  1852. &mdash;
  1853. </article>
  1854. <article
  1855. class="phpdocumentor-element
  1856. -method
  1857. -public
  1858. "
  1859. >
  1860. <h4 class="phpdocumentor-element__name" id="method_setQuietZone">
  1861. setQuietZone()
  1862. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_setQuietZone" class="headerlink"><i class="fas fa-link"></i></a>
  1863. </h4>
  1864. <aside class="phpdocumentor-element-found-in">
  1865. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  1866. :
  1867. <span class="phpdocumentor-element-found-in__line">424</span>
  1868. </aside>
  1869. <p class="phpdocumentor-summary">Draws the &quot;quiet zone&quot; of $size around the matrix</p>
  1870. <code class="phpdocumentor-code phpdocumentor-signature ">
  1871. <span class="phpdocumentor-signature__visibility">public</span>
  1872. <span class="phpdocumentor-signature__name">setQuietZone</span><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">$quietZoneSize</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1873. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1874. <dl class="phpdocumentor-argument-list">
  1875. <dt class="phpdocumentor-argument-list__entry">
  1876. <span class="phpdocumentor-signature__argument__name">$quietZoneSize</span>
  1877. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1878. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  1879. <dd class="phpdocumentor-argument-list__definition">
  1880. <section class="phpdocumentor-description"></section>
  1881. </dd>
  1882. </dl>
  1883. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1884. Tags
  1885. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1886. </h5>
  1887. <dl class="phpdocumentor-tag-list">
  1888. <dt class="phpdocumentor-tag-list__entry">
  1889. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  1890. </dt>
  1891. <dd class="phpdocumentor-tag-list__definition">
  1892. </dd>
  1893. <dt class="phpdocumentor-tag-list__entry">
  1894. <span class="phpdocumentor-tag__name">throws</span>
  1895. </dt>
  1896. <dd class="phpdocumentor-tag-list__definition">
  1897. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  1898. </dd>
  1899. </dl>
  1900. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1901. <span class="phpdocumentor-signature__response_type">self</span>
  1902. &mdash;
  1903. </article>
  1904. <article
  1905. class="phpdocumentor-element
  1906. -method
  1907. -public
  1908. "
  1909. >
  1910. <h4 class="phpdocumentor-element__name" id="method_setSeparators">
  1911. setSeparators()
  1912. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setSeparators" class="headerlink"><i class="fas fa-link"></i></a>
  1913. </h4>
  1914. <aside class="phpdocumentor-element-found-in">
  1915. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1916. :
  1917. <span class="phpdocumentor-element-found-in__line">340</span>
  1918. </aside>
  1919. <p class="phpdocumentor-summary">Draws the separator lines around the finder patterns</p>
  1920. <code class="phpdocumentor-code phpdocumentor-signature ">
  1921. <span class="phpdocumentor-signature__visibility">public</span>
  1922. <span class="phpdocumentor-signature__name">setSeparators</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1923. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 Section 7.3.3</p>
  1924. </section>
  1925. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1926. <span class="phpdocumentor-signature__response_type">self</span>
  1927. &mdash;
  1928. </article>
  1929. <article
  1930. class="phpdocumentor-element
  1931. -method
  1932. -public
  1933. "
  1934. >
  1935. <h4 class="phpdocumentor-element__name" id="method_setTimingPattern">
  1936. setTimingPattern()
  1937. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setTimingPattern" class="headerlink"><i class="fas fa-link"></i></a>
  1938. </h4>
  1939. <aside class="phpdocumentor-element-found-in">
  1940. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1941. :
  1942. <span class="phpdocumentor-element-found-in__line">401</span>
  1943. </aside>
  1944. <p class="phpdocumentor-summary">Draws the timing pattern (h/v checkered line between the finder patterns)</p>
  1945. <code class="phpdocumentor-code phpdocumentor-signature ">
  1946. <span class="phpdocumentor-signature__visibility">public</span>
  1947. <span class="phpdocumentor-signature__name">setTimingPattern</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1948. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 Section 7.3.4</p>
  1949. </section>
  1950. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1951. <span class="phpdocumentor-signature__response_type">self</span>
  1952. &mdash;
  1953. </article>
  1954. <article
  1955. class="phpdocumentor-element
  1956. -method
  1957. -public
  1958. "
  1959. >
  1960. <h4 class="phpdocumentor-element__name" id="method_setVersionNumber">
  1961. setVersionNumber()
  1962. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_setVersionNumber" class="headerlink"><i class="fas fa-link"></i></a>
  1963. </h4>
  1964. <aside class="phpdocumentor-element-found-in">
  1965. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1966. :
  1967. <span class="phpdocumentor-element-found-in__line">423</span>
  1968. </aside>
  1969. <p class="phpdocumentor-summary">Draws the version information, 2x 3x6 pixel</p>
  1970. <code class="phpdocumentor-code phpdocumentor-signature ">
  1971. <span class="phpdocumentor-signature__visibility">public</span>
  1972. <span class="phpdocumentor-signature__name">setVersionNumber</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  1973. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 Section 8.10</p>
  1974. </section>
  1975. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1976. <span class="phpdocumentor-signature__response_type">self</span>
  1977. &mdash;
  1978. </article>
  1979. <article
  1980. class="phpdocumentor-element
  1981. -method
  1982. -public
  1983. "
  1984. >
  1985. <h4 class="phpdocumentor-element__name" id="method_size">
  1986. size()
  1987. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_size" class="headerlink"><i class="fas fa-link"></i></a>
  1988. </h4>
  1989. <aside class="phpdocumentor-element-found-in">
  1990. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  1991. :
  1992. <span class="phpdocumentor-element-found-in__line">181</span>
  1993. </aside>
  1994. <p class="phpdocumentor-summary">Returns the absoulute size of the matrix, including quiet zone (after setting it).</p>
  1995. <code class="phpdocumentor-code phpdocumentor-signature ">
  1996. <span class="phpdocumentor-signature__visibility">public</span>
  1997. <span class="phpdocumentor-signature__name">size</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  1998. <section class="phpdocumentor-description"><p>size = version * 4 + 17 [ + 2 * quietzone size]</p>
  1999. </section>
  2000. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  2001. <span class="phpdocumentor-signature__response_type">int</span>
  2002. &mdash;
  2003. </article>
  2004. <article
  2005. class="phpdocumentor-element
  2006. -method
  2007. -public
  2008. "
  2009. >
  2010. <h4 class="phpdocumentor-element__name" id="method_version">
  2011. version()
  2012. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_version" class="headerlink"><i class="fas fa-link"></i></a>
  2013. </h4>
  2014. <aside class="phpdocumentor-element-found-in">
  2015. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  2016. :
  2017. <span class="phpdocumentor-element-found-in__line">158</span>
  2018. </aside>
  2019. <p class="phpdocumentor-summary">Returns the current version number</p>
  2020. <code class="phpdocumentor-code phpdocumentor-signature ">
  2021. <span class="phpdocumentor-signature__visibility">public</span>
  2022. <span class="phpdocumentor-signature__name">version</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>|null</span></code>
  2023. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  2024. <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>
  2025. &mdash;
  2026. </article>
  2027. <article
  2028. class="phpdocumentor-element
  2029. -method
  2030. -public
  2031. "
  2032. >
  2033. <h4 class="phpdocumentor-element__name" id="method_writeCodewords">
  2034. writeCodewords()
  2035. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_writeCodewords" class="headerlink"><i class="fas fa-link"></i></a>
  2036. </h4>
  2037. <aside class="phpdocumentor-element-found-in">
  2038. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  2039. :
  2040. <span class="phpdocumentor-element-found-in__line">592</span>
  2041. </aside>
  2042. <p class="phpdocumentor-summary">Maps the interleaved binary $data on the matrix</p>
  2043. <code class="phpdocumentor-code phpdocumentor-signature ">
  2044. <span class="phpdocumentor-signature__visibility">public</span>
  2045. <span class="phpdocumentor-signature__name">writeCodewords</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$bitBuffer</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  2046. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  2047. <dl class="phpdocumentor-argument-list">
  2048. <dt class="phpdocumentor-argument-list__entry">
  2049. <span class="phpdocumentor-signature__argument__name">$bitBuffer</span>
  2050. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a></span>
  2051. </dt>
  2052. <dd class="phpdocumentor-argument-list__definition">
  2053. <section class="phpdocumentor-description"></section>
  2054. </dd>
  2055. </dl>
  2056. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  2057. <span class="phpdocumentor-signature__response_type">self</span>
  2058. &mdash;
  2059. </article>
  2060. <article
  2061. class="phpdocumentor-element
  2062. -method
  2063. -protected
  2064. "
  2065. >
  2066. <h4 class="phpdocumentor-element__name" id="method_createMatrix">
  2067. createMatrix()
  2068. <a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_createMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  2069. </h4>
  2070. <aside class="phpdocumentor-element-found-in">
  2071. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRMatrix.php"><a href="files/src-data-qrmatrix.html"><abbr title="src/Data/QRMatrix.php">QRMatrix.php</abbr></a></abbr>
  2072. :
  2073. <span class="phpdocumentor-element-found-in__line">112</span>
  2074. </aside>
  2075. <p class="phpdocumentor-summary">Creates a 2-dimensional array (square) of the given $size</p>
  2076. <code class="phpdocumentor-code phpdocumentor-signature ">
  2077. <span class="phpdocumentor-signature__visibility">protected</span>
  2078. <span class="phpdocumentor-signature__name">createMatrix</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$size</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">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  2079. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  2080. <dl class="phpdocumentor-argument-list">
  2081. <dt class="phpdocumentor-argument-list__entry">
  2082. <span class="phpdocumentor-signature__argument__name">$size</span>
  2083. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  2084. </dt>
  2085. <dd class="phpdocumentor-argument-list__definition">
  2086. <section class="phpdocumentor-description"></section>
  2087. </dd>
  2088. <dt class="phpdocumentor-argument-list__entry">
  2089. <span class="phpdocumentor-signature__argument__name">$value</span>
  2090. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  2091. </dt>
  2092. <dd class="phpdocumentor-argument-list__definition">
  2093. <section class="phpdocumentor-description"></section>
  2094. </dd>
  2095. </dl>
  2096. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  2097. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  2098. &mdash;
  2099. </article>
  2100. <article
  2101. class="phpdocumentor-element
  2102. -method
  2103. -private
  2104. "
  2105. >
  2106. <h4 class="phpdocumentor-element__name" id="method_copyVersionBit">
  2107. copyVersionBit()
  2108. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_copyVersionBit" class="headerlink"><i class="fas fa-link"></i></a>
  2109. </h4>
  2110. <aside class="phpdocumentor-element-found-in">
  2111. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  2112. :
  2113. <span class="phpdocumentor-element-found-in__line">245</span>
  2114. </aside>
  2115. <code class="phpdocumentor-code phpdocumentor-signature ">
  2116. <span class="phpdocumentor-signature__visibility">private</span>
  2117. <span class="phpdocumentor-signature__name">copyVersionBit</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>
  2118. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  2119. <dl class="phpdocumentor-argument-list">
  2120. <dt class="phpdocumentor-argument-list__entry">
  2121. <span class="phpdocumentor-signature__argument__name">$i</span>
  2122. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  2123. </dt>
  2124. <dd class="phpdocumentor-argument-list__definition">
  2125. <section class="phpdocumentor-description"></section>
  2126. </dd>
  2127. <dt class="phpdocumentor-argument-list__entry">
  2128. <span class="phpdocumentor-signature__argument__name">$j</span>
  2129. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  2130. </dt>
  2131. <dd class="phpdocumentor-argument-list__definition">
  2132. <section class="phpdocumentor-description"></section>
  2133. </dd>
  2134. <dt class="phpdocumentor-argument-list__entry">
  2135. <span class="phpdocumentor-signature__argument__name">$versionBits</span>
  2136. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  2137. </dt>
  2138. <dd class="phpdocumentor-argument-list__definition">
  2139. <section class="phpdocumentor-description"></section>
  2140. </dd>
  2141. </dl>
  2142. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  2143. <span class="phpdocumentor-signature__response_type">int</span>
  2144. &mdash;
  2145. </article>
  2146. <article
  2147. class="phpdocumentor-element
  2148. -method
  2149. -private
  2150. "
  2151. >
  2152. <h4 class="phpdocumentor-element__name" id="method_decodeVersionInformation">
  2153. decodeVersionInformation()
  2154. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_decodeVersionInformation" class="headerlink"><i class="fas fa-link"></i></a>
  2155. </h4>
  2156. <aside class="phpdocumentor-element-found-in">
  2157. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  2158. :
  2159. <span class="phpdocumentor-element-found-in__line">357</span>
  2160. </aside>
  2161. <code class="phpdocumentor-code phpdocumentor-signature ">
  2162. <span class="phpdocumentor-signature__visibility">private</span>
  2163. <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>
  2164. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  2165. <dl class="phpdocumentor-argument-list">
  2166. <dt class="phpdocumentor-argument-list__entry">
  2167. <span class="phpdocumentor-signature__argument__name">$versionBits</span>
  2168. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  2169. </dt>
  2170. <dd class="phpdocumentor-argument-list__definition">
  2171. <section class="phpdocumentor-description"></section>
  2172. </dd>
  2173. </dl>
  2174. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  2175. <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>
  2176. &mdash;
  2177. </article>
  2178. <article
  2179. class="phpdocumentor-element
  2180. -method
  2181. -private
  2182. "
  2183. >
  2184. <h4 class="phpdocumentor-element__name" id="method_doDecodeFormatInformation">
  2185. doDecodeFormatInformation()
  2186. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_doDecodeFormatInformation" class="headerlink"><i class="fas fa-link"></i></a>
  2187. </h4>
  2188. <aside class="phpdocumentor-element-found-in">
  2189. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  2190. :
  2191. <span class="phpdocumentor-element-found-in__line">261</span>
  2192. </aside>
  2193. <code class="phpdocumentor-code phpdocumentor-signature ">
  2194. <span class="phpdocumentor-signature__visibility">private</span>
  2195. <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">int|null</span></code>
  2196. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  2197. <dl class="phpdocumentor-argument-list">
  2198. <dt class="phpdocumentor-argument-list__entry">
  2199. <span class="phpdocumentor-signature__argument__name">$maskedFormatInfo1</span>
  2200. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  2201. </dt>
  2202. <dd class="phpdocumentor-argument-list__definition">
  2203. <section class="phpdocumentor-description"><p>format info indicator, with mask still applied</p>
  2204. </section>
  2205. </dd>
  2206. <dt class="phpdocumentor-argument-list__entry">
  2207. <span class="phpdocumentor-signature__argument__name">$maskedFormatInfo2</span>
  2208. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  2209. </dt>
  2210. <dd class="phpdocumentor-argument-list__definition">
  2211. <section class="phpdocumentor-description"><p>second copy of same info; both are checked at the same time
  2212. to establish best match</p>
  2213. </section>
  2214. </dd>
  2215. </dl>
  2216. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  2217. <span class="phpdocumentor-signature__response_type">int|null</span>
  2218. &mdash;
  2219. <section class="phpdocumentor-description"><p>information about the format it specifies, or null if doesn't seem to match any known pattern</p>
  2220. </section>
  2221. </article>
  2222. <article
  2223. class="phpdocumentor-element
  2224. -method
  2225. -private
  2226. "
  2227. >
  2228. <h4 class="phpdocumentor-element__name" id="method_numBitsDiffering">
  2229. numBitsDiffering()
  2230. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_numBitsDiffering" class="headerlink"><i class="fas fa-link"></i></a>
  2231. </h4>
  2232. <aside class="phpdocumentor-element-found-in">
  2233. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  2234. :
  2235. <span class="phpdocumentor-element-found-in__line">405</span>
  2236. </aside>
  2237. <code class="phpdocumentor-code phpdocumentor-signature ">
  2238. <span class="phpdocumentor-signature__visibility">private</span>
  2239. <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>
  2240. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  2241. <dl class="phpdocumentor-argument-list">
  2242. <dt class="phpdocumentor-argument-list__entry">
  2243. <span class="phpdocumentor-signature__argument__name">$a</span>
  2244. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  2245. </dt>
  2246. <dd class="phpdocumentor-argument-list__definition">
  2247. <section class="phpdocumentor-description"></section>
  2248. </dd>
  2249. <dt class="phpdocumentor-argument-list__entry">
  2250. <span class="phpdocumentor-signature__argument__name">$b</span>
  2251. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  2252. </dt>
  2253. <dd class="phpdocumentor-argument-list__definition">
  2254. <section class="phpdocumentor-description"></section>
  2255. </dd>
  2256. </dl>
  2257. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  2258. <span class="phpdocumentor-signature__response_type">int</span>
  2259. &mdash;
  2260. </article>
  2261. <article
  2262. class="phpdocumentor-element
  2263. -method
  2264. -private
  2265. "
  2266. >
  2267. <h4 class="phpdocumentor-element__name" id="method_readFormatInformation">
  2268. readFormatInformation()
  2269. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_readFormatInformation" class="headerlink"><i class="fas fa-link"></i></a>
  2270. </h4>
  2271. <aside class="phpdocumentor-element-found-in">
  2272. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  2273. :
  2274. <span class="phpdocumentor-element-found-in__line">184</span>
  2275. </aside>
  2276. <p class="phpdocumentor-summary">Reads format information from one of its two locations within the QR Code.</p>
  2277. <code class="phpdocumentor-code phpdocumentor-signature ">
  2278. <span class="phpdocumentor-signature__visibility">private</span>
  2279. <span class="phpdocumentor-signature__name">readFormatInformation</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  2280. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  2281. Tags
  2282. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  2283. </h5>
  2284. <dl class="phpdocumentor-tag-list">
  2285. <dt class="phpdocumentor-tag-list__entry">
  2286. <span class="phpdocumentor-tag__name">throws</span>
  2287. </dt>
  2288. <dd class="phpdocumentor-tag-list__definition">
  2289. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Decoder-QRCodeDecoderException.html"><abbr title="\chillerlan\QRCode\Decoder\QRCodeDecoderException">QRCodeDecoderException</abbr></a></span>
  2290. <section class="phpdocumentor-description"><p>if both format information locations cannot be parsed as
  2291. the valid encoding of format information</p>
  2292. </section>
  2293. </dd>
  2294. </dl>
  2295. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  2296. <span class="phpdocumentor-signature__response_type">self</span>
  2297. &mdash;
  2298. </article>
  2299. <article
  2300. class="phpdocumentor-element
  2301. -method
  2302. -private
  2303. "
  2304. >
  2305. <h4 class="phpdocumentor-element__name" id="method_readVersion">
  2306. readVersion()
  2307. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_readVersion" class="headerlink"><i class="fas fa-link"></i></a>
  2308. </h4>
  2309. <aside class="phpdocumentor-element-found-in">
  2310. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  2311. :
  2312. <span class="phpdocumentor-element-found-in__line">305</span>
  2313. </aside>
  2314. <p class="phpdocumentor-summary">Reads version information from one of its two locations within the QR Code.</p>
  2315. <code class="phpdocumentor-code phpdocumentor-signature ">
  2316. <span class="phpdocumentor-signature__visibility">private</span>
  2317. <span class="phpdocumentor-signature__name">readVersion</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  2318. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  2319. Tags
  2320. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  2321. </h5>
  2322. <dl class="phpdocumentor-tag-list">
  2323. <dt class="phpdocumentor-tag-list__entry">
  2324. <span class="phpdocumentor-tag__name">throws</span>
  2325. </dt>
  2326. <dd class="phpdocumentor-tag-list__definition">
  2327. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Decoder-QRCodeDecoderException.html"><abbr title="\chillerlan\QRCode\Decoder\QRCodeDecoderException">QRCodeDecoderException</abbr></a></span>
  2328. <section class="phpdocumentor-description"><p>if both version information locations cannot be parsed as
  2329. the valid encoding of version information</p>
  2330. </section>
  2331. </dd>
  2332. <dt class="phpdocumentor-tag-list__entry">
  2333. <span class="phpdocumentor-tag__name">noinspection</span>
  2334. </dt>
  2335. <dd class="phpdocumentor-tag-list__definition">
  2336. <section class="phpdocumentor-description"><p>DuplicatedCode</p>
  2337. </section>
  2338. </dd>
  2339. </dl>
  2340. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  2341. <span class="phpdocumentor-signature__response_type">self</span>
  2342. &mdash;
  2343. </article>
  2344. <article
  2345. class="phpdocumentor-element
  2346. -method
  2347. -private
  2348. "
  2349. >
  2350. <h4 class="phpdocumentor-element__name" id="method_uRShift">
  2351. uRShift()
  2352. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#method_uRShift" class="headerlink"><i class="fas fa-link"></i></a>
  2353. </h4>
  2354. <aside class="phpdocumentor-element-found-in">
  2355. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/BitMatrix.php"><a href="files/src-decoder-bitmatrix.html"><abbr title="src/Decoder/BitMatrix.php">BitMatrix.php</abbr></a></abbr>
  2356. :
  2357. <span class="phpdocumentor-element-found-in__line">393</span>
  2358. </aside>
  2359. <code class="phpdocumentor-code phpdocumentor-signature ">
  2360. <span class="phpdocumentor-signature__visibility">private</span>
  2361. <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>
  2362. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  2363. <dl class="phpdocumentor-argument-list">
  2364. <dt class="phpdocumentor-argument-list__entry">
  2365. <span class="phpdocumentor-signature__argument__name">$a</span>
  2366. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  2367. </dt>
  2368. <dd class="phpdocumentor-argument-list__definition">
  2369. <section class="phpdocumentor-description"></section>
  2370. </dd>
  2371. <dt class="phpdocumentor-argument-list__entry">
  2372. <span class="phpdocumentor-signature__argument__name">$b</span>
  2373. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  2374. </dt>
  2375. <dd class="phpdocumentor-argument-list__definition">
  2376. <section class="phpdocumentor-description"></section>
  2377. </dd>
  2378. </dl>
  2379. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  2380. <span class="phpdocumentor-signature__response_type">int</span>
  2381. &mdash;
  2382. </article>
  2383. </section>
  2384. <script type="text/javascript">
  2385. function loadExternalCodeSnippets(line) {
  2386. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  2387. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  2388. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  2389. var language = 'php';
  2390. var code = document.createElement('code');
  2391. code.className = 'language-' + language;
  2392. pre.textContent = '';
  2393. pre.setAttribute('data-line', line)
  2394. code.textContent = 'Loading…';
  2395. pre.appendChild(code);
  2396. var xhr = new XMLHttpRequest();
  2397. xhr.open('GET', src, true);
  2398. xhr.onreadystatechange = function () {
  2399. if (xhr.readyState == 4) {
  2400. if (xhr.status < 400 && xhr.responseText) {
  2401. code.textContent = xhr.responseText;
  2402. Prism.highlightElement(code);
  2403. }
  2404. else if (xhr.status >= 400) {
  2405. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  2406. }
  2407. else {
  2408. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  2409. }
  2410. }
  2411. };
  2412. xhr.send(null);
  2413. });
  2414. }
  2415. var modals = document.querySelectorAll("[data-modal]");
  2416. modals.forEach(function (trigger) {
  2417. trigger.addEventListener("click", function (event) {
  2418. //event.preventDefault();
  2419. const modal = document.getElementById(trigger.dataset.modal);
  2420. modal.classList.add("phpdocumentor-modal__open");
  2421. loadExternalCodeSnippets(trigger.dataset.line)
  2422. const exits = modal.querySelectorAll("[data-exit-button]");
  2423. exits.forEach(function (exit) {
  2424. exit.addEventListener("click", function (event) {
  2425. event.preventDefault();
  2426. modal.classList.remove("phpdocumentor-modal__open");
  2427. });
  2428. });
  2429. });
  2430. });
  2431. </script>
  2432. </article>
  2433. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  2434. <section class="phpdocumentor-search-results__dialog">
  2435. <header class="phpdocumentor-search-results__header">
  2436. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  2437. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  2438. </header>
  2439. <section class="phpdocumentor-search-results__body">
  2440. <ul class="phpdocumentor-search-results__entries"></ul>
  2441. </section>
  2442. </section>
  2443. </section>
  2444. </div>
  2445. </div>
  2446. <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  2447. </main>
  2448. <script>
  2449. cssVars({});
  2450. </script>
  2451. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  2452. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  2453. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  2454. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  2455. </body>
  2456. </html>