chillerlan-QRCode-QRCode.html 85 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727
  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=Open+Sans:wght@100;200;300;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/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. <li class="phpdocumentor-topnav__menu-item -social">
  59. <a href="https://github.com/chillerlan/php-qrcode/discussions">
  60. <span>
  61. <i class="fas fa-envelope-open-text"></i>
  62. </span>
  63. </a>
  64. </li>
  65. </ul>
  66. </nav>
  67. </header>
  68. <main class="phpdocumentor">
  69. <div class="phpdocumentor-section">
  70. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  71. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  72. Menu
  73. </label>
  74. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  75. <section class="phpdocumentor-sidebar__category -namespaces">
  76. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  77. <h4 class="phpdocumentor-sidebar__root-namespace">
  78. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  79. </h4>
  80. <ul class="phpdocumentor-list">
  81. <li>
  82. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  83. </li>
  84. <li>
  85. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  86. </li>
  87. </ul>
  88. </section>
  89. <section class="phpdocumentor-sidebar__category -packages">
  90. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  91. <h4 class="phpdocumentor-sidebar__root-namespace">
  92. <a href="packages/Application.html" class="">Application</a>
  93. </h4>
  94. </section>
  95. <section class="phpdocumentor-sidebar__category -reports">
  96. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  97. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  98. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  100. </section>
  101. <section class="phpdocumentor-sidebar__category -indices">
  102. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  103. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  104. </section>
  105. </aside>
  106. <div class="phpdocumentor-column -nine phpdocumentor-content">
  107. <section>
  108. <ul class="phpdocumentor-breadcrumbs">
  109. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  110. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  111. </ul>
  112. <article class="phpdocumentor-element -class">
  113. <h2 class="phpdocumentor-content__title">
  114. QRCode
  115. <div class="phpdocumentor-element__package">
  116. in package
  117. <ul class="phpdocumentor-breadcrumbs">
  118. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  119. </ul>
  120. </div>
  121. </h2>
  122. <div class="phpdocumentor-label-line">
  123. </div>
  124. <aside class="phpdocumentor-element-found-in">
  125. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  126. :
  127. <span class="phpdocumentor-element-found-in__line">32</span>
  128. </aside>
  129. <p class="phpdocumentor-summary">Turns a text string into a Model 2 QR Code</p>
  130. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  131. Tags
  132. <a href="classes/chillerlan-QRCode-QRCode.html#tags" class="headerlink"><i class="fas fa-link"></i></a>
  133. </h5>
  134. <dl class="phpdocumentor-tag-list">
  135. <dt class="phpdocumentor-tag-list__entry">
  136. <span class="phpdocumentor-tag__name">see</span>
  137. </dt>
  138. <dd class="phpdocumentor-tag-list__definition">
  139. <span class="phpdocumentor-tag-link"><a href="https://github.com/kazuhikoarase/qrcode-generator/tree/master/php">https://github.com/kazuhikoarase/qrcode-generator/tree/master/php</a></span>
  140. </dd>
  141. <dt class="phpdocumentor-tag-list__entry">
  142. <span class="phpdocumentor-tag__name">see</span>
  143. </dt>
  144. <dd class="phpdocumentor-tag-list__definition">
  145. <span class="phpdocumentor-tag-link"><a href="https://www.qrcode.com/en/codes/model12.html">https://www.qrcode.com/en/codes/model12.html</a></span>
  146. </dd>
  147. <dt class="phpdocumentor-tag-list__entry">
  148. <span class="phpdocumentor-tag__name">see</span>
  149. </dt>
  150. <dd class="phpdocumentor-tag-list__definition">
  151. <span class="phpdocumentor-tag-link"><a href="https://www.swisseduc.ch/informatik/theoretische_informatik/qr_codes/docs/qr_standard.pdf">https://www.swisseduc.ch/informatik/theoretische_informatik/qr_codes/docs/qr_standard.pdf</a></span>
  152. </dd>
  153. <dt class="phpdocumentor-tag-list__entry">
  154. <span class="phpdocumentor-tag__name">see</span>
  155. </dt>
  156. <dd class="phpdocumentor-tag-list__definition">
  157. <span class="phpdocumentor-tag-link"><a href="https://en.wikipedia.org/wiki/QR_code">https://en.wikipedia.org/wiki/QR_code</a></span>
  158. </dd>
  159. <dt class="phpdocumentor-tag-list__entry">
  160. <span class="phpdocumentor-tag__name">see</span>
  161. </dt>
  162. <dd class="phpdocumentor-tag-list__definition">
  163. <span class="phpdocumentor-tag-link"><a href="https://www.thonky.com/qr-code-tutorial/">https://www.thonky.com/qr-code-tutorial/</a></span>
  164. </dd>
  165. </dl>
  166. <h3 id="toc">
  167. Table of Contents
  168. <a href="classes/chillerlan-QRCode-QRCode.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  169. </h3>
  170. <h4 id="toc-properties">
  171. Properties
  172. <a href="classes/chillerlan-QRCode-QRCode.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  173. </h4>
  174. <dl class="phpdocumentor-table-of-contents">
  175. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  176. <a class="" href="classes/chillerlan-QRCode-QRCode.html#property_dataSegments">$dataSegments</a>
  177. <span>
  178. &nbsp;: array&lt;string|int, <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a>&gt; </span>
  179. </dt>
  180. <dd>A collection of one or more data segments of QRDataModeInterface instances to write</dd>
  181. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  182. <a class="" href="classes/chillerlan-QRCode-QRCode.html#property_luminanceSourceFQN">$luminanceSourceFQN</a>
  183. <span>
  184. &nbsp;: string </span>
  185. </dt>
  186. <dd>The luminance source for the reader</dd>
  187. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  188. <a class="" href="classes/chillerlan-QRCode-QRCode.html#property_options">$options</a>
  189. <span>
  190. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  191. </dt>
  192. <dd>The settings container</dd>
  193. </dl>
  194. <h4 id="toc-methods">
  195. Methods
  196. <a href="classes/chillerlan-QRCode-QRCode.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  197. </h4>
  198. <dl class="phpdocumentor-table-of-contents">
  199. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  200. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method___construct">__construct()</a>
  201. <span>
  202. &nbsp;: mixed </span>
  203. </dt>
  204. <dd>QRCode constructor.</dd>
  205. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  206. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_addAlphaNumSegment">addAlphaNumSegment()</a>
  207. <span>
  208. &nbsp;: static </span>
  209. </dt>
  210. <dd>Adds an alphanumeric data segment</dd>
  211. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  212. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_addByteSegment">addByteSegment()</a>
  213. <span>
  214. &nbsp;: static </span>
  215. </dt>
  216. <dd>Adds an 8-bit byte data segment</dd>
  217. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  218. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_addEciDesignator">addEciDesignator()</a>
  219. <span>
  220. &nbsp;: static </span>
  221. </dt>
  222. <dd>Adds a standalone ECI designator</dd>
  223. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  224. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_addEciSegment">addEciSegment()</a>
  225. <span>
  226. &nbsp;: static </span>
  227. </dt>
  228. <dd>Adds an ECI data segment (including designator)</dd>
  229. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  230. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_addHanziSegment">addHanziSegment()</a>
  231. <span>
  232. &nbsp;: static </span>
  233. </dt>
  234. <dd>Adds a Hanzi data segment (simplified Chinese 13-bit double-byte characters, GB2312/GB18030)</dd>
  235. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  236. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_addKanjiSegment">addKanjiSegment()</a>
  237. <span>
  238. &nbsp;: static </span>
  239. </dt>
  240. <dd>Adds a Kanji data segment (Japanese 13-bit double-byte characters, Shift-JIS)</dd>
  241. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  242. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_addNumericSegment">addNumericSegment()</a>
  243. <span>
  244. &nbsp;: static </span>
  245. </dt>
  246. <dd>Adds a numeric data segment</dd>
  247. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  248. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_addSegment">addSegment()</a>
  249. <span>
  250. &nbsp;: static </span>
  251. </dt>
  252. <dd>Adds a data segment</dd>
  253. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  254. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_clearSegments">clearSegments()</a>
  255. <span>
  256. &nbsp;: static </span>
  257. </dt>
  258. <dd>Clears the data segments array</dd>
  259. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  260. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_getQRMatrix">getQRMatrix()</a>
  261. <span>
  262. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  263. </dt>
  264. <dd>Returns a QRMatrix object for the given $data and current QROptions</dd>
  265. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  266. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_readFromBlob">readFromBlob()</a>
  267. <span>
  268. &nbsp;: <a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a> </span>
  269. </dt>
  270. <dd>Reads a QR Code from the given data blob</dd>
  271. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  272. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_readFromFile">readFromFile()</a>
  273. <span>
  274. &nbsp;: <a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a> </span>
  275. </dt>
  276. <dd>Reads a QR Code from a given file</dd>
  277. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  278. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_readFromSource">readFromSource()</a>
  279. <span>
  280. &nbsp;: <a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a> </span>
  281. </dt>
  282. <dd>Reads a QR Code from the given luminance source</dd>
  283. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  284. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_render">render()</a>
  285. <span>
  286. &nbsp;: mixed </span>
  287. </dt>
  288. <dd>Renders a QR Code for the given $data and QROptions, saves $file optionally</dd>
  289. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  290. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_renderMatrix">renderMatrix()</a>
  291. <span>
  292. &nbsp;: mixed </span>
  293. </dt>
  294. <dd>Renders a QR Code for the given QRMatrix and QROptions, saves $file optionally</dd>
  295. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  296. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_setOptions">setOptions()</a>
  297. <span>
  298. &nbsp;: static </span>
  299. </dt>
  300. <dd>Sets an options instance</dd>
  301. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  302. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_addMatrixModifications">addMatrixModifications()</a>
  303. <span>
  304. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  305. </dt>
  306. <dd>add matrix modifications after mask pattern evaluation and before handing over to output</dd>
  307. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  308. <a class="" href="classes/chillerlan-QRCode-QRCode.html#method_initOutputInterface">initOutputInterface()</a>
  309. <span>
  310. &nbsp;: <a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a> </span>
  311. </dt>
  312. <dd>initializes a fresh built-in or custom QROutputInterface</dd>
  313. </dl>
  314. <section class="phpdocumentor-properties">
  315. <h3 class="phpdocumentor-elements__header" id="properties">
  316. Properties
  317. <a href="classes/chillerlan-QRCode-QRCode.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  318. </h3>
  319. <article
  320. class="
  321. phpdocumentor-element
  322. -property
  323. -protected
  324. "
  325. >
  326. <h4 class="phpdocumentor-element__name" id="property_dataSegments">
  327. $dataSegments
  328. <a href="classes/chillerlan-QRCode-QRCode.html#property_dataSegments" class="headerlink"><i class="fas fa-link"></i></a>
  329. <span class="phpdocumentor-element__modifiers">
  330. </span>
  331. </h4>
  332. <aside class="phpdocumentor-element-found-in">
  333. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  334. :
  335. <span class="phpdocumentor-element-found-in__line">44</span>
  336. </aside>
  337. <p class="phpdocumentor-summary">A collection of one or more data segments of QRDataModeInterface instances to write</p>
  338. <code class="phpdocumentor-code phpdocumentor-signature ">
  339. <span class="phpdocumentor-signature__visibility">protected</span>
  340. <span class="phpdocumentor-signature__type">array&lt;string|int, <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a>&gt;</span>
  341. <span class="phpdocumentor-signature__name">$dataSegments</span>
  342. = <span class="phpdocumentor-signature__default-value">[]</span></code>
  343. </article>
  344. <article
  345. class="
  346. phpdocumentor-element
  347. -property
  348. -protected
  349. "
  350. >
  351. <h4 class="phpdocumentor-element__name" id="property_luminanceSourceFQN">
  352. $luminanceSourceFQN
  353. <a href="classes/chillerlan-QRCode-QRCode.html#property_luminanceSourceFQN" class="headerlink"><i class="fas fa-link"></i></a>
  354. <span class="phpdocumentor-element__modifiers">
  355. </span>
  356. </h4>
  357. <aside class="phpdocumentor-element-found-in">
  358. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  359. :
  360. <span class="phpdocumentor-element-found-in__line">49</span>
  361. </aside>
  362. <p class="phpdocumentor-summary">The luminance source for the reader</p>
  363. <code class="phpdocumentor-code phpdocumentor-signature ">
  364. <span class="phpdocumentor-signature__visibility">protected</span>
  365. <span class="phpdocumentor-signature__type">string</span>
  366. <span class="phpdocumentor-signature__name">$luminanceSourceFQN</span>
  367. = <span class="phpdocumentor-signature__default-value">\chillerlan\QRCode\Common\GDLuminanceSource::class</span></code>
  368. </article>
  369. <article
  370. class="
  371. phpdocumentor-element
  372. -property
  373. -protected
  374. "
  375. >
  376. <h4 class="phpdocumentor-element__name" id="property_options">
  377. $options
  378. <a href="classes/chillerlan-QRCode-QRCode.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  379. <span class="phpdocumentor-element__modifiers">
  380. </span>
  381. </h4>
  382. <aside class="phpdocumentor-element-found-in">
  383. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  384. :
  385. <span class="phpdocumentor-element-found-in__line">37</span>
  386. </aside>
  387. <p class="phpdocumentor-summary">The settings container</p>
  388. <code class="phpdocumentor-code phpdocumentor-signature ">
  389. <span class="phpdocumentor-signature__visibility">protected</span>
  390. <span class="phpdocumentor-signature__type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a></span>
  391. <span class="phpdocumentor-signature__name">$options</span>
  392. </code>
  393. </article>
  394. </section>
  395. <section class="phpdocumentor-methods">
  396. <h3 class="phpdocumentor-elements__header" id="methods">
  397. Methods
  398. <a href="classes/chillerlan-QRCode-QRCode.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  399. </h3>
  400. <article
  401. class="phpdocumentor-element
  402. -method
  403. -public
  404. "
  405. >
  406. <h4 class="phpdocumentor-element__name" id="method___construct">
  407. __construct()
  408. <a href="classes/chillerlan-QRCode-QRCode.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  409. </h4>
  410. <aside class="phpdocumentor-element-found-in">
  411. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  412. :
  413. <span class="phpdocumentor-element-found-in__line">56</span>
  414. </aside>
  415. <p class="phpdocumentor-summary">QRCode constructor.</p>
  416. <code class="phpdocumentor-code phpdocumentor-signature ">
  417. <span class="phpdocumentor-signature__visibility">public</span>
  418. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a>|iterable&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">new <a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a>()</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  419. <div class="phpdocumentor-label-line">
  420. </div>
  421. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  422. <dl class="phpdocumentor-argument-list">
  423. <dt class="phpdocumentor-argument-list__entry">
  424. <span class="phpdocumentor-signature__argument__name">$options</span>
  425. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a>|iterable&lt;string|int, mixed&gt;</span>
  426. = <span class="phpdocumentor-signature__argument__default-value">new <a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a>()</span> </dt>
  427. <dd class="phpdocumentor-argument-list__definition">
  428. </dd>
  429. </dl>
  430. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  431. Tags
  432. <a href="classes/chillerlan-QRCode-QRCode.html#method___construct#tags" class="headerlink"><i class="fas fa-link"></i></a>
  433. </h5>
  434. <dl class="phpdocumentor-tag-list">
  435. <dt class="phpdocumentor-tag-list__entry">
  436. <span class="phpdocumentor-tag__name">phpstan-param</span>
  437. </dt>
  438. <dd class="phpdocumentor-tag-list__definition">
  439. <section class="phpdocumentor-description"><p>array&lt;string, mixed&gt; $options</p>
  440. </section>
  441. </dd>
  442. </dl>
  443. </article>
  444. <article
  445. class="phpdocumentor-element
  446. -method
  447. -public
  448. "
  449. >
  450. <h4 class="phpdocumentor-element__name" id="method_addAlphaNumSegment">
  451. addAlphaNumSegment()
  452. <a href="classes/chillerlan-QRCode-QRCode.html#method_addAlphaNumSegment" class="headerlink"><i class="fas fa-link"></i></a>
  453. </h4>
  454. <aside class="phpdocumentor-element-found-in">
  455. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  456. :
  457. <span class="phpdocumentor-element-found-in__line">206</span>
  458. </aside>
  459. <p class="phpdocumentor-summary">Adds an alphanumeric data segment</p>
  460. <code class="phpdocumentor-code phpdocumentor-signature ">
  461. <span class="phpdocumentor-signature__visibility">public</span>
  462. <span class="phpdocumentor-signature__name">addAlphaNumSegment</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</span></code>
  463. <div class="phpdocumentor-label-line">
  464. </div>
  465. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 8.3.3 - Alphanumeric Mode</p>
  466. </section>
  467. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  468. <dl class="phpdocumentor-argument-list">
  469. <dt class="phpdocumentor-argument-list__entry">
  470. <span class="phpdocumentor-signature__argument__name">$data</span>
  471. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  472. </dt>
  473. <dd class="phpdocumentor-argument-list__definition">
  474. </dd>
  475. </dl>
  476. <section>
  477. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  478. <span class="phpdocumentor-signature__response_type">static</span>
  479. </section>
  480. </article>
  481. <article
  482. class="phpdocumentor-element
  483. -method
  484. -public
  485. "
  486. >
  487. <h4 class="phpdocumentor-element__name" id="method_addByteSegment">
  488. addByteSegment()
  489. <a href="classes/chillerlan-QRCode-QRCode.html#method_addByteSegment" class="headerlink"><i class="fas fa-link"></i></a>
  490. </h4>
  491. <aside class="phpdocumentor-element-found-in">
  492. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  493. :
  494. <span class="phpdocumentor-element-found-in__line">233</span>
  495. </aside>
  496. <p class="phpdocumentor-summary">Adds an 8-bit byte data segment</p>
  497. <code class="phpdocumentor-code phpdocumentor-signature ">
  498. <span class="phpdocumentor-signature__visibility">public</span>
  499. <span class="phpdocumentor-signature__name">addByteSegment</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</span></code>
  500. <div class="phpdocumentor-label-line">
  501. </div>
  502. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 8.3.4 - 8-bit Byte Mode</p>
  503. </section>
  504. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  505. <dl class="phpdocumentor-argument-list">
  506. <dt class="phpdocumentor-argument-list__entry">
  507. <span class="phpdocumentor-signature__argument__name">$data</span>
  508. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  509. </dt>
  510. <dd class="phpdocumentor-argument-list__definition">
  511. </dd>
  512. </dl>
  513. <section>
  514. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  515. <span class="phpdocumentor-signature__response_type">static</span>
  516. </section>
  517. </article>
  518. <article
  519. class="phpdocumentor-element
  520. -method
  521. -public
  522. "
  523. >
  524. <h4 class="phpdocumentor-element__name" id="method_addEciDesignator">
  525. addEciDesignator()
  526. <a href="classes/chillerlan-QRCode-QRCode.html#method_addEciDesignator" 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/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  530. :
  531. <span class="phpdocumentor-element-found-in__line">244</span>
  532. </aside>
  533. <p class="phpdocumentor-summary">Adds a standalone ECI designator</p>
  534. <code class="phpdocumentor-code phpdocumentor-signature ">
  535. <span class="phpdocumentor-signature__visibility">public</span>
  536. <span class="phpdocumentor-signature__name">addEciDesignator</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$encoding</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</span></code>
  537. <div class="phpdocumentor-label-line">
  538. </div>
  539. <section class="phpdocumentor-description"><p>The ECI designator must be followed by a Byte segment that contains the string encoded according to the given ECI charset</p>
  540. <p>ISO/IEC 18004:2000 8.3.1 - Extended Channel Interpretation (ECI) Mode</p>
  541. </section>
  542. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  543. <dl class="phpdocumentor-argument-list">
  544. <dt class="phpdocumentor-argument-list__entry">
  545. <span class="phpdocumentor-signature__argument__name">$encoding</span>
  546. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  547. </dt>
  548. <dd class="phpdocumentor-argument-list__definition">
  549. </dd>
  550. </dl>
  551. <section>
  552. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  553. <span class="phpdocumentor-signature__response_type">static</span>
  554. </section>
  555. </article>
  556. <article
  557. class="phpdocumentor-element
  558. -method
  559. -public
  560. "
  561. >
  562. <h4 class="phpdocumentor-element__name" id="method_addEciSegment">
  563. addEciSegment()
  564. <a href="classes/chillerlan-QRCode-QRCode.html#method_addEciSegment" class="headerlink"><i class="fas fa-link"></i></a>
  565. </h4>
  566. <aside class="phpdocumentor-element-found-in">
  567. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  568. :
  569. <span class="phpdocumentor-element-found-in__line">257</span>
  570. </aside>
  571. <p class="phpdocumentor-summary">Adds an ECI data segment (including designator)</p>
  572. <code class="phpdocumentor-code phpdocumentor-signature ">
  573. <span class="phpdocumentor-signature__visibility">public</span>
  574. <span class="phpdocumentor-signature__name">addEciSegment</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$encoding</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</span></code>
  575. <div class="phpdocumentor-label-line">
  576. </div>
  577. <section class="phpdocumentor-description"><p>The given string will be encoded from mb_internal_encoding() to the given ECI character set</p>
  578. <p>I hate this somehow, but I'll leave it for now</p>
  579. </section>
  580. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  581. <dl class="phpdocumentor-argument-list">
  582. <dt class="phpdocumentor-argument-list__entry">
  583. <span class="phpdocumentor-signature__argument__name">$encoding</span>
  584. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  585. </dt>
  586. <dd class="phpdocumentor-argument-list__definition">
  587. </dd>
  588. <dt class="phpdocumentor-argument-list__entry">
  589. <span class="phpdocumentor-signature__argument__name">$data</span>
  590. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  591. </dt>
  592. <dd class="phpdocumentor-argument-list__definition">
  593. </dd>
  594. </dl>
  595. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  596. Tags
  597. <a href="classes/chillerlan-QRCode-QRCode.html#method_addEciSegment#tags" class="headerlink"><i class="fas fa-link"></i></a>
  598. </h5>
  599. <dl class="phpdocumentor-tag-list">
  600. <dt class="phpdocumentor-tag-list__entry">
  601. <span class="phpdocumentor-tag__name">throws</span>
  602. </dt>
  603. <dd class="phpdocumentor-tag-list__definition">
  604. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  605. </dd>
  606. </dl>
  607. <section>
  608. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  609. <span class="phpdocumentor-signature__response_type">static</span>
  610. </section>
  611. </article>
  612. <article
  613. class="phpdocumentor-element
  614. -method
  615. -public
  616. "
  617. >
  618. <h4 class="phpdocumentor-element__name" id="method_addHanziSegment">
  619. addHanziSegment()
  620. <a href="classes/chillerlan-QRCode-QRCode.html#method_addHanziSegment" class="headerlink"><i class="fas fa-link"></i></a>
  621. </h4>
  622. <aside class="phpdocumentor-element-found-in">
  623. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  624. :
  625. <span class="phpdocumentor-element-found-in__line">224</span>
  626. </aside>
  627. <p class="phpdocumentor-summary">Adds a Hanzi data segment (simplified Chinese 13-bit double-byte characters, GB2312/GB18030)</p>
  628. <code class="phpdocumentor-code phpdocumentor-signature ">
  629. <span class="phpdocumentor-signature__visibility">public</span>
  630. <span class="phpdocumentor-signature__name">addHanziSegment</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</span></code>
  631. <div class="phpdocumentor-label-line">
  632. </div>
  633. <section class="phpdocumentor-description"><p>GBT18284-2000 Hanzi Mode</p>
  634. </section>
  635. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  636. <dl class="phpdocumentor-argument-list">
  637. <dt class="phpdocumentor-argument-list__entry">
  638. <span class="phpdocumentor-signature__argument__name">$data</span>
  639. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  640. </dt>
  641. <dd class="phpdocumentor-argument-list__definition">
  642. </dd>
  643. </dl>
  644. <section>
  645. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  646. <span class="phpdocumentor-signature__response_type">static</span>
  647. </section>
  648. </article>
  649. <article
  650. class="phpdocumentor-element
  651. -method
  652. -public
  653. "
  654. >
  655. <h4 class="phpdocumentor-element__name" id="method_addKanjiSegment">
  656. addKanjiSegment()
  657. <a href="classes/chillerlan-QRCode-QRCode.html#method_addKanjiSegment" class="headerlink"><i class="fas fa-link"></i></a>
  658. </h4>
  659. <aside class="phpdocumentor-element-found-in">
  660. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  661. :
  662. <span class="phpdocumentor-element-found-in__line">215</span>
  663. </aside>
  664. <p class="phpdocumentor-summary">Adds a Kanji data segment (Japanese 13-bit double-byte characters, Shift-JIS)</p>
  665. <code class="phpdocumentor-code phpdocumentor-signature ">
  666. <span class="phpdocumentor-signature__visibility">public</span>
  667. <span class="phpdocumentor-signature__name">addKanjiSegment</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</span></code>
  668. <div class="phpdocumentor-label-line">
  669. </div>
  670. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 8.3.5 - Kanji Mode</p>
  671. </section>
  672. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  673. <dl class="phpdocumentor-argument-list">
  674. <dt class="phpdocumentor-argument-list__entry">
  675. <span class="phpdocumentor-signature__argument__name">$data</span>
  676. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  677. </dt>
  678. <dd class="phpdocumentor-argument-list__definition">
  679. </dd>
  680. </dl>
  681. <section>
  682. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  683. <span class="phpdocumentor-signature__response_type">static</span>
  684. </section>
  685. </article>
  686. <article
  687. class="phpdocumentor-element
  688. -method
  689. -public
  690. "
  691. >
  692. <h4 class="phpdocumentor-element__name" id="method_addNumericSegment">
  693. addNumericSegment()
  694. <a href="classes/chillerlan-QRCode-QRCode.html#method_addNumericSegment" class="headerlink"><i class="fas fa-link"></i></a>
  695. </h4>
  696. <aside class="phpdocumentor-element-found-in">
  697. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  698. :
  699. <span class="phpdocumentor-element-found-in__line">197</span>
  700. </aside>
  701. <p class="phpdocumentor-summary">Adds a numeric data segment</p>
  702. <code class="phpdocumentor-code phpdocumentor-signature ">
  703. <span class="phpdocumentor-signature__visibility">public</span>
  704. <span class="phpdocumentor-signature__name">addNumericSegment</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</span></code>
  705. <div class="phpdocumentor-label-line">
  706. </div>
  707. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 8.3.2 - Numeric Mode</p>
  708. </section>
  709. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  710. <dl class="phpdocumentor-argument-list">
  711. <dt class="phpdocumentor-argument-list__entry">
  712. <span class="phpdocumentor-signature__argument__name">$data</span>
  713. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  714. </dt>
  715. <dd class="phpdocumentor-argument-list__definition">
  716. </dd>
  717. </dl>
  718. <section>
  719. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  720. <span class="phpdocumentor-signature__response_type">static</span>
  721. </section>
  722. </article>
  723. <article
  724. class="phpdocumentor-element
  725. -method
  726. -public
  727. "
  728. >
  729. <h4 class="phpdocumentor-element__name" id="method_addSegment">
  730. addSegment()
  731. <a href="classes/chillerlan-QRCode-QRCode.html#method_addSegment" class="headerlink"><i class="fas fa-link"></i></a>
  732. </h4>
  733. <aside class="phpdocumentor-element-found-in">
  734. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  735. :
  736. <span class="phpdocumentor-element-found-in__line">175</span>
  737. </aside>
  738. <p class="phpdocumentor-summary">Adds a data segment</p>
  739. <code class="phpdocumentor-code phpdocumentor-signature ">
  740. <span class="phpdocumentor-signature__visibility">public</span>
  741. <span class="phpdocumentor-signature__name">addSegment</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$segment</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</span></code>
  742. <div class="phpdocumentor-label-line">
  743. </div>
  744. <section class="phpdocumentor-description"><p>ISO/IEC 18004:2000 8.3.6 - Mixing modes
  745. ISO/IEC 18004:2000 Annex H - Optimisation of bit stream length</p>
  746. </section>
  747. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  748. <dl class="phpdocumentor-argument-list">
  749. <dt class="phpdocumentor-argument-list__entry">
  750. <span class="phpdocumentor-signature__argument__name">$segment</span>
  751. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a></span>
  752. </dt>
  753. <dd class="phpdocumentor-argument-list__definition">
  754. </dd>
  755. </dl>
  756. <section>
  757. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  758. <span class="phpdocumentor-signature__response_type">static</span>
  759. </section>
  760. </article>
  761. <article
  762. class="phpdocumentor-element
  763. -method
  764. -public
  765. "
  766. >
  767. <h4 class="phpdocumentor-element__name" id="method_clearSegments">
  768. clearSegments()
  769. <a href="classes/chillerlan-QRCode-QRCode.html#method_clearSegments" class="headerlink"><i class="fas fa-link"></i></a>
  770. </h4>
  771. <aside class="phpdocumentor-element-found-in">
  772. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  773. :
  774. <span class="phpdocumentor-element-found-in__line">186</span>
  775. </aside>
  776. <p class="phpdocumentor-summary">Clears the data segments array</p>
  777. <code class="phpdocumentor-code phpdocumentor-signature ">
  778. <span class="phpdocumentor-signature__visibility">public</span>
  779. <span class="phpdocumentor-signature__name">clearSegments</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</span></code>
  780. <div class="phpdocumentor-label-line">
  781. </div>
  782. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  783. Tags
  784. <a href="classes/chillerlan-QRCode-QRCode.html#method_clearSegments#tags" class="headerlink"><i class="fas fa-link"></i></a>
  785. </h5>
  786. <dl class="phpdocumentor-tag-list">
  787. <dt class="phpdocumentor-tag-list__entry">
  788. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  789. </dt>
  790. <dd class="phpdocumentor-tag-list__definition">
  791. </dd>
  792. </dl>
  793. <section>
  794. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  795. <span class="phpdocumentor-signature__response_type">static</span>
  796. </section>
  797. </article>
  798. <article
  799. class="phpdocumentor-element
  800. -method
  801. -public
  802. "
  803. >
  804. <h4 class="phpdocumentor-element__name" id="method_getQRMatrix">
  805. getQRMatrix()
  806. <a href="classes/chillerlan-QRCode-QRCode.html#method_getQRMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  807. </h4>
  808. <aside class="phpdocumentor-element-found-in">
  809. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  810. :
  811. <span class="phpdocumentor-element-found-in__line">110</span>
  812. </aside>
  813. <p class="phpdocumentor-summary">Returns a QRMatrix object for the given $data and current QROptions</p>
  814. <code class="phpdocumentor-code phpdocumentor-signature ">
  815. <span class="phpdocumentor-signature__visibility">public</span>
  816. <span class="phpdocumentor-signature__name">getQRMatrix</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span></code>
  817. <div class="phpdocumentor-label-line">
  818. </div>
  819. <section>
  820. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  821. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  822. </section>
  823. </article>
  824. <article
  825. class="phpdocumentor-element
  826. -method
  827. -public
  828. "
  829. >
  830. <h4 class="phpdocumentor-element__name" id="method_readFromBlob">
  831. readFromBlob()
  832. <a href="classes/chillerlan-QRCode-QRCode.html#method_readFromBlob" class="headerlink"><i class="fas fa-link"></i></a>
  833. </h4>
  834. <aside class="phpdocumentor-element-found-in">
  835. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  836. :
  837. <span class="phpdocumentor-element-found-in__line">292</span>
  838. </aside>
  839. <p class="phpdocumentor-summary">Reads a QR Code from the given data blob</p>
  840. <code class="phpdocumentor-code phpdocumentor-signature ">
  841. <span class="phpdocumentor-signature__visibility">public</span>
  842. <span class="phpdocumentor-signature__name">readFromBlob</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$blob</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a></span></code>
  843. <div class="phpdocumentor-label-line">
  844. </div>
  845. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  846. <dl class="phpdocumentor-argument-list">
  847. <dt class="phpdocumentor-argument-list__entry">
  848. <span class="phpdocumentor-signature__argument__name">$blob</span>
  849. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  850. </dt>
  851. <dd class="phpdocumentor-argument-list__definition">
  852. </dd>
  853. </dl>
  854. <section>
  855. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  856. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a></span>
  857. </section>
  858. </article>
  859. <article
  860. class="phpdocumentor-element
  861. -method
  862. -public
  863. "
  864. >
  865. <h4 class="phpdocumentor-element__name" id="method_readFromFile">
  866. readFromFile()
  867. <a href="classes/chillerlan-QRCode-QRCode.html#method_readFromFile" class="headerlink"><i class="fas fa-link"></i></a>
  868. </h4>
  869. <aside class="phpdocumentor-element-found-in">
  870. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  871. :
  872. <span class="phpdocumentor-element-found-in__line">285</span>
  873. </aside>
  874. <p class="phpdocumentor-summary">Reads a QR Code from a given file</p>
  875. <code class="phpdocumentor-code phpdocumentor-signature ">
  876. <span class="phpdocumentor-signature__visibility">public</span>
  877. <span class="phpdocumentor-signature__name">readFromFile</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$path</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a></span></code>
  878. <div class="phpdocumentor-label-line">
  879. </div>
  880. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  881. <dl class="phpdocumentor-argument-list">
  882. <dt class="phpdocumentor-argument-list__entry">
  883. <span class="phpdocumentor-signature__argument__name">$path</span>
  884. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  885. </dt>
  886. <dd class="phpdocumentor-argument-list__definition">
  887. </dd>
  888. </dl>
  889. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  890. Tags
  891. <a href="classes/chillerlan-QRCode-QRCode.html#method_readFromFile#tags" class="headerlink"><i class="fas fa-link"></i></a>
  892. </h5>
  893. <dl class="phpdocumentor-tag-list">
  894. <dt class="phpdocumentor-tag-list__entry">
  895. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  896. </dt>
  897. <dd class="phpdocumentor-tag-list__definition">
  898. </dd>
  899. </dl>
  900. <section>
  901. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  902. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a></span>
  903. </section>
  904. </article>
  905. <article
  906. class="phpdocumentor-element
  907. -method
  908. -public
  909. "
  910. >
  911. <h4 class="phpdocumentor-element__name" id="method_readFromSource">
  912. readFromSource()
  913. <a href="classes/chillerlan-QRCode-QRCode.html#method_readFromSource" class="headerlink"><i class="fas fa-link"></i></a>
  914. </h4>
  915. <aside class="phpdocumentor-element-found-in">
  916. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  917. :
  918. <span class="phpdocumentor-element-found-in__line">299</span>
  919. </aside>
  920. <p class="phpdocumentor-summary">Reads a QR Code from the given luminance source</p>
  921. <code class="phpdocumentor-code phpdocumentor-signature ">
  922. <span class="phpdocumentor-signature__visibility">public</span>
  923. <span class="phpdocumentor-signature__name">readFromSource</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-LuminanceSourceInterface.html"><abbr title="\chillerlan\QRCode\Common\LuminanceSourceInterface">LuminanceSourceInterface</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$source</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a></span></code>
  924. <div class="phpdocumentor-label-line">
  925. </div>
  926. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  927. <dl class="phpdocumentor-argument-list">
  928. <dt class="phpdocumentor-argument-list__entry">
  929. <span class="phpdocumentor-signature__argument__name">$source</span>
  930. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-LuminanceSourceInterface.html"><abbr title="\chillerlan\QRCode\Common\LuminanceSourceInterface">LuminanceSourceInterface</abbr></a></span>
  931. </dt>
  932. <dd class="phpdocumentor-argument-list__definition">
  933. </dd>
  934. </dl>
  935. <section>
  936. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  937. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Decoder-DecoderResult.html"><abbr title="\chillerlan\QRCode\Decoder\DecoderResult">DecoderResult</abbr></a></span>
  938. </section>
  939. </article>
  940. <article
  941. class="phpdocumentor-element
  942. -method
  943. -public
  944. "
  945. >
  946. <h4 class="phpdocumentor-element__name" id="method_render">
  947. render()
  948. <a href="classes/chillerlan-QRCode-QRCode.html#method_render" class="headerlink"><i class="fas fa-link"></i></a>
  949. </h4>
  950. <aside class="phpdocumentor-element-found-in">
  951. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  952. :
  953. <span class="phpdocumentor-element-found-in__line">83</span>
  954. </aside>
  955. <p class="phpdocumentor-summary">Renders a QR Code for the given $data and QROptions, saves $file optionally</p>
  956. <code class="phpdocumentor-code phpdocumentor-signature ">
  957. <span class="phpdocumentor-signature__visibility">public</span>
  958. <span class="phpdocumentor-signature__name">render</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span><span> = </span><span class="phpdocumentor-signature__argument__default-value"><abbr title="\chillerlan\QRCode\null">null</abbr></span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$file</span><span> = </span><span class="phpdocumentor-signature__argument__default-value"><abbr title="\chillerlan\QRCode\null">null</abbr></span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  959. <div class="phpdocumentor-label-line">
  960. </div>
  961. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  962. <dl class="phpdocumentor-argument-list">
  963. <dt class="phpdocumentor-argument-list__entry">
  964. <span class="phpdocumentor-signature__argument__name">$data</span>
  965. : <span class="phpdocumentor-signature__argument__return-type">string|null</span>
  966. = <span class="phpdocumentor-signature__argument__default-value"><abbr title="\chillerlan\QRCode\null">null</abbr></span> </dt>
  967. <dd class="phpdocumentor-argument-list__definition">
  968. </dd>
  969. <dt class="phpdocumentor-argument-list__entry">
  970. <span class="phpdocumentor-signature__argument__name">$file</span>
  971. : <span class="phpdocumentor-signature__argument__return-type">string|null</span>
  972. = <span class="phpdocumentor-signature__argument__default-value"><abbr title="\chillerlan\QRCode\null">null</abbr></span> </dt>
  973. <dd class="phpdocumentor-argument-list__definition">
  974. </dd>
  975. </dl>
  976. </article>
  977. <article
  978. class="phpdocumentor-element
  979. -method
  980. -public
  981. "
  982. >
  983. <h4 class="phpdocumentor-element__name" id="method_renderMatrix">
  984. renderMatrix()
  985. <a href="classes/chillerlan-QRCode-QRCode.html#method_renderMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  986. </h4>
  987. <aside class="phpdocumentor-element-found-in">
  988. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  989. :
  990. <span class="phpdocumentor-element-found-in__line">103</span>
  991. </aside>
  992. <p class="phpdocumentor-summary">Renders a QR Code for the given QRMatrix and QROptions, saves $file optionally</p>
  993. <code class="phpdocumentor-code phpdocumentor-signature ">
  994. <span class="phpdocumentor-signature__visibility">public</span>
  995. <span class="phpdocumentor-signature__name">renderMatrix</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$file</span><span> = </span><span class="phpdocumentor-signature__argument__default-value"><abbr title="\chillerlan\QRCode\null">null</abbr></span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  996. <div class="phpdocumentor-label-line">
  997. </div>
  998. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  999. <dl class="phpdocumentor-argument-list">
  1000. <dt class="phpdocumentor-argument-list__entry">
  1001. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  1002. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  1003. </dt>
  1004. <dd class="phpdocumentor-argument-list__definition">
  1005. </dd>
  1006. <dt class="phpdocumentor-argument-list__entry">
  1007. <span class="phpdocumentor-signature__argument__name">$file</span>
  1008. : <span class="phpdocumentor-signature__argument__return-type">string|null</span>
  1009. = <span class="phpdocumentor-signature__argument__default-value"><abbr title="\chillerlan\QRCode\null">null</abbr></span> </dt>
  1010. <dd class="phpdocumentor-argument-list__definition">
  1011. </dd>
  1012. </dl>
  1013. </article>
  1014. <article
  1015. class="phpdocumentor-element
  1016. -method
  1017. -public
  1018. "
  1019. >
  1020. <h4 class="phpdocumentor-element__name" id="method_setOptions">
  1021. setOptions()
  1022. <a href="classes/chillerlan-QRCode-QRCode.html#method_setOptions" class="headerlink"><i class="fas fa-link"></i></a>
  1023. </h4>
  1024. <aside class="phpdocumentor-element-found-in">
  1025. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1026. :
  1027. <span class="phpdocumentor-element-found-in__line">65</span>
  1028. </aside>
  1029. <p class="phpdocumentor-summary">Sets an options instance</p>
  1030. <code class="phpdocumentor-code phpdocumentor-signature ">
  1031. <span class="phpdocumentor-signature__visibility">public</span>
  1032. <span class="phpdocumentor-signature__name">setOptions</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a>|iterable&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">static</span></code>
  1033. <div class="phpdocumentor-label-line">
  1034. </div>
  1035. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1036. <dl class="phpdocumentor-argument-list">
  1037. <dt class="phpdocumentor-argument-list__entry">
  1038. <span class="phpdocumentor-signature__argument__name">$options</span>
  1039. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a>|iterable&lt;string|int, mixed&gt;</span>
  1040. </dt>
  1041. <dd class="phpdocumentor-argument-list__definition">
  1042. </dd>
  1043. </dl>
  1044. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1045. Tags
  1046. <a href="classes/chillerlan-QRCode-QRCode.html#method_setOptions#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1047. </h5>
  1048. <dl class="phpdocumentor-tag-list">
  1049. <dt class="phpdocumentor-tag-list__entry">
  1050. <span class="phpdocumentor-tag__name">phpstan-param</span>
  1051. </dt>
  1052. <dd class="phpdocumentor-tag-list__definition">
  1053. <section class="phpdocumentor-description"><p>array&lt;string, mixed&gt; $options</p>
  1054. </section>
  1055. </dd>
  1056. </dl>
  1057. <section>
  1058. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1059. <span class="phpdocumentor-signature__response_type">static</span>
  1060. </section>
  1061. </article>
  1062. <article
  1063. class="phpdocumentor-element
  1064. -method
  1065. -protected
  1066. "
  1067. >
  1068. <h4 class="phpdocumentor-element__name" id="method_addMatrixModifications">
  1069. addMatrixModifications()
  1070. <a href="classes/chillerlan-QRCode-QRCode.html#method_addMatrixModifications" class="headerlink"><i class="fas fa-link"></i></a>
  1071. </h4>
  1072. <aside class="phpdocumentor-element-found-in">
  1073. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1074. :
  1075. <span class="phpdocumentor-element-found-in__line">125</span>
  1076. </aside>
  1077. <p class="phpdocumentor-summary">add matrix modifications after mask pattern evaluation and before handing over to output</p>
  1078. <code class="phpdocumentor-code phpdocumentor-signature ">
  1079. <span class="phpdocumentor-signature__visibility">protected</span>
  1080. <span class="phpdocumentor-signature__name">addMatrixModifications</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span></code>
  1081. <div class="phpdocumentor-label-line">
  1082. </div>
  1083. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1084. <dl class="phpdocumentor-argument-list">
  1085. <dt class="phpdocumentor-argument-list__entry">
  1086. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  1087. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  1088. </dt>
  1089. <dd class="phpdocumentor-argument-list__definition">
  1090. </dd>
  1091. </dl>
  1092. <section>
  1093. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1094. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  1095. </section>
  1096. </article>
  1097. <article
  1098. class="phpdocumentor-element
  1099. -method
  1100. -protected
  1101. "
  1102. >
  1103. <h4 class="phpdocumentor-element__name" id="method_initOutputInterface">
  1104. initOutputInterface()
  1105. <a href="classes/chillerlan-QRCode-QRCode.html#method_initOutputInterface" class="headerlink"><i class="fas fa-link"></i></a>
  1106. </h4>
  1107. <aside class="phpdocumentor-element-found-in">
  1108. <abbr class="phpdocumentor-element-found-in__file" title="src/QRCode.php"><a href="files/src-qrcode.html"><abbr title="src/QRCode.php">QRCode.php</abbr></a></abbr>
  1109. :
  1110. <span class="phpdocumentor-element-found-in__line">152</span>
  1111. </aside>
  1112. <p class="phpdocumentor-summary">initializes a fresh built-in or custom QROutputInterface</p>
  1113. <code class="phpdocumentor-code phpdocumentor-signature ">
  1114. <span class="phpdocumentor-signature__visibility">protected</span>
  1115. <span class="phpdocumentor-signature__name">initOutputInterface</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span></code>
  1116. <div class="phpdocumentor-label-line">
  1117. </div>
  1118. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1119. <dl class="phpdocumentor-argument-list">
  1120. <dt class="phpdocumentor-argument-list__entry">
  1121. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  1122. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  1123. </dt>
  1124. <dd class="phpdocumentor-argument-list__definition">
  1125. </dd>
  1126. </dl>
  1127. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1128. Tags
  1129. <a href="classes/chillerlan-QRCode-QRCode.html#method_initOutputInterface#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1130. </h5>
  1131. <dl class="phpdocumentor-tag-list">
  1132. <dt class="phpdocumentor-tag-list__entry">
  1133. <span class="phpdocumentor-tag__name">throws</span>
  1134. </dt>
  1135. <dd class="phpdocumentor-tag-list__definition">
  1136. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1137. </dd>
  1138. </dl>
  1139. <section>
  1140. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1141. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Output-QROutputInterface.html"><abbr title="\chillerlan\QRCode\Output\QROutputInterface">QROutputInterface</abbr></a></span>
  1142. </section>
  1143. </article>
  1144. </section>
  1145. <div class="phpdocumentor-modal" id="source-view">
  1146. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  1147. <div class="phpdocumentor-modal-container">
  1148. <div class="phpdocumentor-modal-content">
  1149. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/QRCode.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  1150. </div>
  1151. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  1152. </div>
  1153. </div>
  1154. <script type="text/javascript">
  1155. (function () {
  1156. function loadExternalCodeSnippet(el, url, line) {
  1157. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1158. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  1159. const language = 'php';
  1160. const code = document.createElement('code');
  1161. code.className = 'language-' + language;
  1162. pre.textContent = '';
  1163. pre.setAttribute('data-line', line)
  1164. code.textContent = 'Loading…';
  1165. pre.appendChild(code);
  1166. var xhr = new XMLHttpRequest();
  1167. xhr.open('GET', src, true);
  1168. xhr.onreadystatechange = function () {
  1169. if (xhr.readyState !== 4) {
  1170. return;
  1171. }
  1172. if (xhr.status < 400 && xhr.responseText) {
  1173. code.textContent = xhr.responseText;
  1174. Prism.highlightElement(code);
  1175. d=document.getElementsByClassName("line-numbers");
  1176. d[0].scrollTop = d[0].children[1].offsetTop;
  1177. return;
  1178. }
  1179. if (xhr.status === 404) {
  1180. code.textContent = '✖ Error: File could not be found';
  1181. return;
  1182. }
  1183. if (xhr.status >= 400) {
  1184. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1185. return;
  1186. }
  1187. code.textContent = '✖ Error: An unknown error occurred';
  1188. };
  1189. xhr.send(null);
  1190. });
  1191. }
  1192. const modalButtons = document.querySelectorAll("[data-modal]");
  1193. const openedAsLocalFile = window.location.protocol === 'file:';
  1194. if (modalButtons.length > 0 && openedAsLocalFile) {
  1195. console.warn(
  1196. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  1197. 'browsers block XHR requests when a page is opened this way'
  1198. );
  1199. }
  1200. modalButtons.forEach(function (trigger) {
  1201. if (openedAsLocalFile) {
  1202. trigger.setAttribute("hidden", "hidden");
  1203. }
  1204. trigger.addEventListener("click", function (event) {
  1205. event.preventDefault();
  1206. const modal = document.getElementById(trigger.dataset.modal);
  1207. if (!modal) {
  1208. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  1209. return;
  1210. }
  1211. modal.classList.add("phpdocumentor-modal__open");
  1212. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  1213. const exits = modal.querySelectorAll("[data-exit-button]");
  1214. exits.forEach(function (exit) {
  1215. exit.addEventListener("click", function (event) {
  1216. event.preventDefault();
  1217. modal.classList.remove("phpdocumentor-modal__open");
  1218. });
  1219. });
  1220. });
  1221. });
  1222. })();
  1223. </script>
  1224. </article>
  1225. </section>
  1226. <section class="phpdocumentor-on-this-page__sidebar">
  1227. <section class="phpdocumentor-on-this-page__content">
  1228. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  1229. <ul class="phpdocumentor-list -clean">
  1230. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  1231. <li>
  1232. <ul class="phpdocumentor-list -clean">
  1233. <li><a href="classes/chillerlan-QRCode-QRCode.html#toc-properties">Properties</a></li>
  1234. <li><a href="classes/chillerlan-QRCode-QRCode.html#toc-methods">Methods</a></li>
  1235. </ul>
  1236. </li>
  1237. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  1238. <li>
  1239. <ul class="phpdocumentor-list -clean">
  1240. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#property_dataSegments">$dataSegments</a></li>
  1241. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#property_luminanceSourceFQN">$luminanceSourceFQN</a></li>
  1242. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#property_options">$options</a></li>
  1243. </ul>
  1244. </li>
  1245. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  1246. <li>
  1247. <ul class="phpdocumentor-list -clean">
  1248. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method___construct">__construct()</a></li>
  1249. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_addAlphaNumSegment">addAlphaNumSegment()</a></li>
  1250. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_addByteSegment">addByteSegment()</a></li>
  1251. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_addEciDesignator">addEciDesignator()</a></li>
  1252. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_addEciSegment">addEciSegment()</a></li>
  1253. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_addHanziSegment">addHanziSegment()</a></li>
  1254. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_addKanjiSegment">addKanjiSegment()</a></li>
  1255. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_addNumericSegment">addNumericSegment()</a></li>
  1256. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_addSegment">addSegment()</a></li>
  1257. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_clearSegments">clearSegments()</a></li>
  1258. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_getQRMatrix">getQRMatrix()</a></li>
  1259. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_readFromBlob">readFromBlob()</a></li>
  1260. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_readFromFile">readFromFile()</a></li>
  1261. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_readFromSource">readFromSource()</a></li>
  1262. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_render">render()</a></li>
  1263. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_renderMatrix">renderMatrix()</a></li>
  1264. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_setOptions">setOptions()</a></li>
  1265. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_addMatrixModifications">addMatrixModifications()</a></li>
  1266. <li class=""><a href="classes/chillerlan-QRCode-QRCode.html#method_initOutputInterface">initOutputInterface()</a></li>
  1267. </ul>
  1268. </li>
  1269. </ul>
  1270. </section>
  1271. </section>
  1272. </div>
  1273. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1274. <section class="phpdocumentor-search-results__dialog">
  1275. <header class="phpdocumentor-search-results__header">
  1276. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1277. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1278. </header>
  1279. <section class="phpdocumentor-search-results__body">
  1280. <ul class="phpdocumentor-search-results__entries"></ul>
  1281. </section>
  1282. </section>
  1283. </section>
  1284. </div>
  1285. <a href="classes/chillerlan-QRCode-QRCode.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1286. </main>
  1287. <script>
  1288. cssVars({});
  1289. </script>
  1290. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1291. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1292. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1293. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1294. </body>
  1295. </html>