chillerlan-QRCode-Decoder-BitMatrix.html 155 KB

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