chillerlan-QRCode-Decoder-BitMatrix.html 141 KB

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