chillerlan-QRCode-Data-QRData.html 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123
  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. <h4 class="phpdocumentor-sidebar__root-namespace">
  89. <a href="namespaces/output.html" class="">Output</a>
  90. </h4>
  91. </section>
  92. <section class="phpdocumentor-sidebar__category -packages">
  93. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  94. <h4 class="phpdocumentor-sidebar__root-namespace">
  95. <a href="packages/Application.html" class="">Application</a>
  96. </h4>
  97. </section>
  98. <section class="phpdocumentor-sidebar__category -reports">
  99. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  100. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  101. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  102. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  103. </section>
  104. <section class="phpdocumentor-sidebar__category -indices">
  105. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  106. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  107. </section>
  108. </aside>
  109. <div class="phpdocumentor-column -nine phpdocumentor-content">
  110. <section>
  111. <ul class="phpdocumentor-breadcrumbs">
  112. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  113. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  114. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-data.html">Data</a></li>
  115. </ul>
  116. <article class="phpdocumentor-element -class">
  117. <h2 class="phpdocumentor-content__title">
  118. QRData
  119. <div class="phpdocumentor-element__package">
  120. in package
  121. <ul class="phpdocumentor-breadcrumbs">
  122. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  123. </ul>
  124. </div>
  125. </h2>
  126. <div class="phpdocumentor-label-line">
  127. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  128. </div>
  129. <aside class="phpdocumentor-element-found-in">
  130. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  131. :
  132. <span class="phpdocumentor-element-found-in__line">21</span>
  133. </aside>
  134. <p class="phpdocumentor-summary">Processes the binary data and maps it on a QRMatrix which is then being returned</p>
  135. <h3 id="toc">
  136. Table of Contents
  137. <a href="classes/chillerlan-QRCode-Data-QRData.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  138. </h3>
  139. <h4 id="toc-properties">
  140. Properties
  141. <a href="classes/chillerlan-QRCode-Data-QRData.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  142. </h4>
  143. <dl class="phpdocumentor-table-of-contents">
  144. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  145. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#property_bitBuffer">$bitBuffer</a>
  146. <span>
  147. &nbsp;: <a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a> </span>
  148. </dt>
  149. <dd>a BitBuffer instance</dd>
  150. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  151. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#property_dataSegments">$dataSegments</a>
  152. <span>
  153. &nbsp;: array&lt;string|int, <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a>&gt; </span>
  154. </dt>
  155. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  156. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#property_eccLevel">$eccLevel</a>
  157. <span>
  158. &nbsp;: <a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a> </span>
  159. </dt>
  160. <dd>an EccLevel instance</dd>
  161. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  162. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#property_maxBitsForEcc">$maxBitsForEcc</a>
  163. <span>
  164. &nbsp;: array&lt;string|int, int&gt; </span>
  165. </dt>
  166. <dd>Max bits for the current ECC mode</dd>
  167. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  168. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#property_options">$options</a>
  169. <span>
  170. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  171. </dt>
  172. <dd>the options instance</dd>
  173. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  174. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#property_version">$version</a>
  175. <span>
  176. &nbsp;: <a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a> </span>
  177. </dt>
  178. <dd>current QR Code version</dd>
  179. </dl>
  180. <h4 id="toc-methods">
  181. Methods
  182. <a href="classes/chillerlan-QRCode-Data-QRData.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  183. </h4>
  184. <dl class="phpdocumentor-table-of-contents">
  185. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  186. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method___construct">__construct()</a>
  187. <span>
  188. &nbsp;: mixed </span>
  189. </dt>
  190. <dd>QRData constructor.</dd>
  191. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  192. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method_estimateTotalBitLength">estimateTotalBitLength()</a>
  193. <span>
  194. &nbsp;: int </span>
  195. </dt>
  196. <dd>estimates the total length of the several mode segments in order to guess the minimum version</dd>
  197. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  198. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method_getBitBuffer">getBitBuffer()</a>
  199. <span>
  200. &nbsp;: <a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a> </span>
  201. </dt>
  202. <dd>Returns the current BitBuffer instance</dd>
  203. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  204. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method_getMinimumVersion">getMinimumVersion()</a>
  205. <span>
  206. &nbsp;: <a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a> </span>
  207. </dt>
  208. <dd>returns the minimum version number for the given string</dd>
  209. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  210. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method_setBitBuffer">setBitBuffer()</a>
  211. <span>
  212. &nbsp;: self </span>
  213. </dt>
  214. <dd>Sets a BitBuffer object</dd>
  215. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  216. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method_setData">setData()</a>
  217. <span>
  218. &nbsp;: self </span>
  219. </dt>
  220. <dd>Sets the data string (internally called by the constructor)</dd>
  221. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  222. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method_writeMatrix">writeMatrix()</a>
  223. <span>
  224. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  225. </dt>
  226. <dd>returns a fresh matrix object with the data written and masked with the given $maskPattern</dd>
  227. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  228. <a class="" href="classes/chillerlan-QRCode-Data-QRData.html#method_writeBitBuffer">writeBitBuffer()</a>
  229. <span>
  230. &nbsp;: void </span>
  231. </dt>
  232. <dd>creates a BitBuffer and writes the string data to it</dd>
  233. </dl>
  234. <section class="phpdocumentor-properties">
  235. <h3 class="phpdocumentor-elements__header" id="properties">
  236. Properties
  237. <a href="classes/chillerlan-QRCode-Data-QRData.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  238. </h3>
  239. <article
  240. class="
  241. phpdocumentor-element
  242. -property
  243. -private
  244. "
  245. >
  246. <h4 class="phpdocumentor-element__name" id="property_bitBuffer">
  247. $bitBuffer
  248. <a href="classes/chillerlan-QRCode-Data-QRData.html#property_bitBuffer" class="headerlink"><i class="fas fa-link"></i></a>
  249. <span class="phpdocumentor-element__modifiers">
  250. </span>
  251. </h4>
  252. <aside class="phpdocumentor-element-found-in">
  253. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  254. :
  255. <span class="phpdocumentor-element-found-in__line">31</span>
  256. </aside>
  257. <p class="phpdocumentor-summary">a BitBuffer instance</p>
  258. <code class="phpdocumentor-code phpdocumentor-signature ">
  259. <span class="phpdocumentor-signature__visibility">private</span>
  260. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a></span>
  261. <span class="phpdocumentor-signature__name">$bitBuffer</span>
  262. </code>
  263. </article>
  264. <article
  265. class="
  266. phpdocumentor-element
  267. -property
  268. -private
  269. "
  270. >
  271. <h4 class="phpdocumentor-element__name" id="property_dataSegments">
  272. $dataSegments
  273. <a href="classes/chillerlan-QRCode-Data-QRData.html#property_dataSegments" class="headerlink"><i class="fas fa-link"></i></a>
  274. <span class="phpdocumentor-element__modifiers">
  275. </span>
  276. </h4>
  277. <aside class="phpdocumentor-element-found-in">
  278. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  279. :
  280. <span class="phpdocumentor-element-found-in__line">46</span>
  281. </aside>
  282. <code class="phpdocumentor-code phpdocumentor-signature ">
  283. <span class="phpdocumentor-signature__visibility">private</span>
  284. <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>
  285. <span class="phpdocumentor-signature__name">$dataSegments</span>
  286. = <span class="phpdocumentor-signature__default-value">[]</span></code>
  287. </article>
  288. <article
  289. class="
  290. phpdocumentor-element
  291. -property
  292. -private
  293. "
  294. >
  295. <h4 class="phpdocumentor-element__name" id="property_eccLevel">
  296. $eccLevel
  297. <a href="classes/chillerlan-QRCode-Data-QRData.html#property_eccLevel" class="headerlink"><i class="fas fa-link"></i></a>
  298. <span class="phpdocumentor-element__modifiers">
  299. </span>
  300. </h4>
  301. <aside class="phpdocumentor-element-found-in">
  302. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  303. :
  304. <span class="phpdocumentor-element-found-in__line">36</span>
  305. </aside>
  306. <p class="phpdocumentor-summary">an EccLevel instance</p>
  307. <code class="phpdocumentor-code phpdocumentor-signature ">
  308. <span class="phpdocumentor-signature__visibility">private</span>
  309. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Common-EccLevel.html"><abbr title="\chillerlan\QRCode\Common\EccLevel">EccLevel</abbr></a></span>
  310. <span class="phpdocumentor-signature__name">$eccLevel</span>
  311. </code>
  312. </article>
  313. <article
  314. class="
  315. phpdocumentor-element
  316. -property
  317. -private
  318. "
  319. >
  320. <h4 class="phpdocumentor-element__name" id="property_maxBitsForEcc">
  321. $maxBitsForEcc
  322. <a href="classes/chillerlan-QRCode-Data-QRData.html#property_maxBitsForEcc" class="headerlink"><i class="fas fa-link"></i></a>
  323. <span class="phpdocumentor-element__modifiers">
  324. </span>
  325. </h4>
  326. <aside class="phpdocumentor-element-found-in">
  327. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  328. :
  329. <span class="phpdocumentor-element-found-in__line">53</span>
  330. </aside>
  331. <p class="phpdocumentor-summary">Max bits for the current ECC mode</p>
  332. <code class="phpdocumentor-code phpdocumentor-signature ">
  333. <span class="phpdocumentor-signature__visibility">private</span>
  334. <span class="phpdocumentor-signature__type">array&lt;string|int, int&gt;</span>
  335. <span class="phpdocumentor-signature__name">$maxBitsForEcc</span>
  336. </code>
  337. </article>
  338. <article
  339. class="
  340. phpdocumentor-element
  341. -property
  342. -private
  343. "
  344. >
  345. <h4 class="phpdocumentor-element__name" id="property_options">
  346. $options
  347. <a href="classes/chillerlan-QRCode-Data-QRData.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  348. <span class="phpdocumentor-element__modifiers">
  349. </span>
  350. </h4>
  351. <aside class="phpdocumentor-element-found-in">
  352. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  353. :
  354. <span class="phpdocumentor-element-found-in__line">26</span>
  355. </aside>
  356. <p class="phpdocumentor-summary">the options instance</p>
  357. <code class="phpdocumentor-code phpdocumentor-signature ">
  358. <span class="phpdocumentor-signature__visibility">private</span>
  359. <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>
  360. <span class="phpdocumentor-signature__name">$options</span>
  361. </code>
  362. </article>
  363. <article
  364. class="
  365. phpdocumentor-element
  366. -property
  367. -private
  368. "
  369. >
  370. <h4 class="phpdocumentor-element__name" id="property_version">
  371. $version
  372. <a href="classes/chillerlan-QRCode-Data-QRData.html#property_version" class="headerlink"><i class="fas fa-link"></i></a>
  373. <span class="phpdocumentor-element__modifiers">
  374. </span>
  375. </h4>
  376. <aside class="phpdocumentor-element-found-in">
  377. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  378. :
  379. <span class="phpdocumentor-element-found-in__line">41</span>
  380. </aside>
  381. <p class="phpdocumentor-summary">current QR Code version</p>
  382. <code class="phpdocumentor-code phpdocumentor-signature ">
  383. <span class="phpdocumentor-signature__visibility">private</span>
  384. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  385. <span class="phpdocumentor-signature__name">$version</span>
  386. </code>
  387. </article>
  388. </section>
  389. <section class="phpdocumentor-methods">
  390. <h3 class="phpdocumentor-elements__header" id="methods">
  391. Methods
  392. <a href="classes/chillerlan-QRCode-Data-QRData.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  393. </h3>
  394. <article
  395. class="phpdocumentor-element
  396. -method
  397. -public
  398. "
  399. >
  400. <h4 class="phpdocumentor-element__name" id="method___construct">
  401. __construct()
  402. <a href="classes/chillerlan-QRCode-Data-QRData.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  403. </h4>
  404. <aside class="phpdocumentor-element-found-in">
  405. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  406. :
  407. <span class="phpdocumentor-element-found-in__line">58</span>
  408. </aside>
  409. <p class="phpdocumentor-summary">QRData constructor.</p>
  410. <code class="phpdocumentor-code phpdocumentor-signature ">
  411. <span class="phpdocumentor-signature__visibility">public</span>
  412. <span class="phpdocumentor-signature__name">__construct</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>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$dataSegments</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">[]</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  413. <div class="phpdocumentor-label-line">
  414. </div>
  415. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  416. <dl class="phpdocumentor-argument-list">
  417. <dt class="phpdocumentor-argument-list__entry">
  418. <span class="phpdocumentor-signature__argument__name">$options</span>
  419. : <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></span>
  420. </dt>
  421. <dd class="phpdocumentor-argument-list__definition">
  422. </dd>
  423. <dt class="phpdocumentor-argument-list__entry">
  424. <span class="phpdocumentor-signature__argument__name">$dataSegments</span>
  425. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  426. = <span class="phpdocumentor-signature__argument__default-value">[]</span> </dt>
  427. <dd class="phpdocumentor-argument-list__definition">
  428. </dd>
  429. </dl>
  430. </article>
  431. <article
  432. class="phpdocumentor-element
  433. -method
  434. -public
  435. "
  436. >
  437. <h4 class="phpdocumentor-element__name" id="method_estimateTotalBitLength">
  438. estimateTotalBitLength()
  439. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_estimateTotalBitLength" class="headerlink"><i class="fas fa-link"></i></a>
  440. </h4>
  441. <aside class="phpdocumentor-element-found-in">
  442. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  443. :
  444. <span class="phpdocumentor-element-found-in__line">134</span>
  445. </aside>
  446. <p class="phpdocumentor-summary">estimates the total length of the several mode segments in order to guess the minimum version</p>
  447. <code class="phpdocumentor-code phpdocumentor-signature ">
  448. <span class="phpdocumentor-signature__visibility">public</span>
  449. <span class="phpdocumentor-signature__name">estimateTotalBitLength</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  450. <div class="phpdocumentor-label-line">
  451. </div>
  452. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  453. Tags
  454. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_estimateTotalBitLength#tags" class="headerlink"><i class="fas fa-link"></i></a>
  455. </h5>
  456. <dl class="phpdocumentor-tag-list">
  457. <dt class="phpdocumentor-tag-list__entry">
  458. <span class="phpdocumentor-tag__name">throws</span>
  459. </dt>
  460. <dd class="phpdocumentor-tag-list__definition">
  461. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  462. </dd>
  463. </dl>
  464. <section>
  465. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  466. <span class="phpdocumentor-signature__response_type">int</span>
  467. </section>
  468. </article>
  469. <article
  470. class="phpdocumentor-element
  471. -method
  472. -public
  473. "
  474. >
  475. <h4 class="phpdocumentor-element__name" id="method_getBitBuffer">
  476. getBitBuffer()
  477. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_getBitBuffer" class="headerlink"><i class="fas fa-link"></i></a>
  478. </h4>
  479. <aside class="phpdocumentor-element-found-in">
  480. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  481. :
  482. <span class="phpdocumentor-element-found-in__line">89</span>
  483. </aside>
  484. <p class="phpdocumentor-summary">Returns the current BitBuffer instance</p>
  485. <code class="phpdocumentor-code phpdocumentor-signature ">
  486. <span class="phpdocumentor-signature__visibility">public</span>
  487. <span class="phpdocumentor-signature__name">getBitBuffer</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a></span></code>
  488. <div class="phpdocumentor-label-line">
  489. </div>
  490. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  491. Tags
  492. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_getBitBuffer#tags" class="headerlink"><i class="fas fa-link"></i></a>
  493. </h5>
  494. <dl class="phpdocumentor-tag-list">
  495. <dt class="phpdocumentor-tag-list__entry">
  496. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  497. </dt>
  498. <dd class="phpdocumentor-tag-list__definition">
  499. </dd>
  500. </dl>
  501. <section>
  502. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  503. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-BitBuffer.html"><abbr title="\chillerlan\QRCode\Common\BitBuffer">BitBuffer</abbr></a></span>
  504. </section>
  505. </article>
  506. <article
  507. class="phpdocumentor-element
  508. -method
  509. -public
  510. "
  511. >
  512. <h4 class="phpdocumentor-element__name" id="method_getMinimumVersion">
  513. getMinimumVersion()
  514. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_getMinimumVersion" class="headerlink"><i class="fas fa-link"></i></a>
  515. </h4>
  516. <aside class="phpdocumentor-element-found-in">
  517. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  518. :
  519. <span class="phpdocumentor-element-found-in__line">187</span>
  520. </aside>
  521. <p class="phpdocumentor-summary">returns the minimum version number for the given string</p>
  522. <code class="phpdocumentor-code phpdocumentor-signature ">
  523. <span class="phpdocumentor-signature__visibility">public</span>
  524. <span class="phpdocumentor-signature__name">getMinimumVersion</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span></code>
  525. <div class="phpdocumentor-label-line">
  526. </div>
  527. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  528. Tags
  529. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_getMinimumVersion#tags" class="headerlink"><i class="fas fa-link"></i></a>
  530. </h5>
  531. <dl class="phpdocumentor-tag-list">
  532. <dt class="phpdocumentor-tag-list__entry">
  533. <span class="phpdocumentor-tag__name">throws</span>
  534. </dt>
  535. <dd class="phpdocumentor-tag-list__definition">
  536. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  537. </dd>
  538. </dl>
  539. <section>
  540. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  541. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Common-Version.html"><abbr title="\chillerlan\QRCode\Common\Version">Version</abbr></a></span>
  542. </section>
  543. </article>
  544. <article
  545. class="phpdocumentor-element
  546. -method
  547. -public
  548. "
  549. >
  550. <h4 class="phpdocumentor-element__name" id="method_setBitBuffer">
  551. setBitBuffer()
  552. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_setBitBuffer" class="headerlink"><i class="fas fa-link"></i></a>
  553. </h4>
  554. <aside class="phpdocumentor-element-found-in">
  555. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  556. :
  557. <span class="phpdocumentor-element-found-in__line">102</span>
  558. </aside>
  559. <p class="phpdocumentor-summary">Sets a BitBuffer object</p>
  560. <code class="phpdocumentor-code phpdocumentor-signature ">
  561. <span class="phpdocumentor-signature__visibility">public</span>
  562. <span class="phpdocumentor-signature__name">setBitBuffer</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>
  563. <div class="phpdocumentor-label-line">
  564. </div>
  565. <section class="phpdocumentor-description"><p>This can be used instead of setData(), however, the version auto-detection is not available in this case.
  566. The version needs to match the length bits range for the data mode the data has been encoded with,
  567. additionally the bit array needs to contain enough pad bits.</p>
  568. </section>
  569. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  570. <dl class="phpdocumentor-argument-list">
  571. <dt class="phpdocumentor-argument-list__entry">
  572. <span class="phpdocumentor-signature__argument__name">$bitBuffer</span>
  573. : <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>
  574. </dt>
  575. <dd class="phpdocumentor-argument-list__definition">
  576. </dd>
  577. </dl>
  578. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  579. Tags
  580. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_setBitBuffer#tags" class="headerlink"><i class="fas fa-link"></i></a>
  581. </h5>
  582. <dl class="phpdocumentor-tag-list">
  583. <dt class="phpdocumentor-tag-list__entry">
  584. <span class="phpdocumentor-tag__name">throws</span>
  585. </dt>
  586. <dd class="phpdocumentor-tag-list__definition">
  587. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRCodeDataException.html"><abbr title="\chillerlan\QRCode\Data\QRCodeDataException">QRCodeDataException</abbr></a></span>
  588. </dd>
  589. </dl>
  590. <section>
  591. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  592. <span class="phpdocumentor-signature__response_type">self</span>
  593. </section>
  594. </article>
  595. <article
  596. class="phpdocumentor-element
  597. -method
  598. -public
  599. "
  600. >
  601. <h4 class="phpdocumentor-element__name" id="method_setData">
  602. setData()
  603. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_setData" class="headerlink"><i class="fas fa-link"></i></a>
  604. </h4>
  605. <aside class="phpdocumentor-element-found-in">
  606. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  607. :
  608. <span class="phpdocumentor-element-found-in__line">74</span>
  609. </aside>
  610. <p class="phpdocumentor-summary">Sets the data string (internally called by the constructor)</p>
  611. <code class="phpdocumentor-code phpdocumentor-signature ">
  612. <span class="phpdocumentor-signature__visibility">public</span>
  613. <span class="phpdocumentor-signature__name">setData</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a>&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$dataSegments</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  614. <div class="phpdocumentor-label-line">
  615. </div>
  616. <section class="phpdocumentor-description"><p>Subsequent calls will overwrite the current state - use the QRCode::add*Segement() method instead</p>
  617. </section>
  618. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  619. <dl class="phpdocumentor-argument-list">
  620. <dt class="phpdocumentor-argument-list__entry">
  621. <span class="phpdocumentor-signature__argument__name">$dataSegments</span>
  622. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, <a href="classes/chillerlan-QRCode-Data-QRDataModeInterface.html"><abbr title="\chillerlan\QRCode\Data\QRDataModeInterface">QRDataModeInterface</abbr></a>&gt;</span>
  623. </dt>
  624. <dd class="phpdocumentor-argument-list__definition">
  625. </dd>
  626. </dl>
  627. <section>
  628. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  629. <span class="phpdocumentor-signature__response_type">self</span>
  630. </section>
  631. </article>
  632. <article
  633. class="phpdocumentor-element
  634. -method
  635. -public
  636. "
  637. >
  638. <h4 class="phpdocumentor-element__name" id="method_writeMatrix">
  639. writeMatrix()
  640. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_writeMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  641. </h4>
  642. <aside class="phpdocumentor-element-found-in">
  643. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  644. :
  645. <span class="phpdocumentor-element-found-in__line">122</span>
  646. </aside>
  647. <p class="phpdocumentor-summary">returns a fresh matrix object with the data written and masked with the given $maskPattern</p>
  648. <code class="phpdocumentor-code phpdocumentor-signature ">
  649. <span class="phpdocumentor-signature__visibility">public</span>
  650. <span class="phpdocumentor-signature__name">writeMatrix</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>
  651. <div class="phpdocumentor-label-line">
  652. </div>
  653. <section>
  654. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  655. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  656. </section>
  657. </article>
  658. <article
  659. class="phpdocumentor-element
  660. -method
  661. -private
  662. "
  663. >
  664. <h4 class="phpdocumentor-element__name" id="method_writeBitBuffer">
  665. writeBitBuffer()
  666. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_writeBitBuffer" class="headerlink"><i class="fas fa-link"></i></a>
  667. </h4>
  668. <aside class="phpdocumentor-element-found-in">
  669. <abbr class="phpdocumentor-element-found-in__file" title="src/Data/QRData.php"><a href="files/src-data-qrdata.html"><abbr title="src/Data/QRData.php">QRData.php</abbr></a></abbr>
  670. :
  671. <span class="phpdocumentor-element-found-in__line">211</span>
  672. </aside>
  673. <p class="phpdocumentor-summary">creates a BitBuffer and writes the string data to it</p>
  674. <code class="phpdocumentor-code phpdocumentor-signature ">
  675. <span class="phpdocumentor-signature__visibility">private</span>
  676. <span class="phpdocumentor-signature__name">writeBitBuffer</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  677. <div class="phpdocumentor-label-line">
  678. </div>
  679. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  680. Tags
  681. <a href="classes/chillerlan-QRCode-Data-QRData.html#method_writeBitBuffer#tags" class="headerlink"><i class="fas fa-link"></i></a>
  682. </h5>
  683. <dl class="phpdocumentor-tag-list">
  684. <dt class="phpdocumentor-tag-list__entry">
  685. <span class="phpdocumentor-tag__name">throws</span>
  686. </dt>
  687. <dd class="phpdocumentor-tag-list__definition">
  688. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  689. <section class="phpdocumentor-description"><p>on data overflow</p>
  690. </section>
  691. </dd>
  692. </dl>
  693. </article>
  694. </section>
  695. <div class="phpdocumentor-modal" id="source-view">
  696. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  697. <div class="phpdocumentor-modal-container">
  698. <div class="phpdocumentor-modal-content">
  699. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Data/QRData.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  700. </div>
  701. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  702. </div>
  703. </div>
  704. <script type="text/javascript">
  705. (function () {
  706. function loadExternalCodeSnippet(el, url, line) {
  707. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  708. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  709. const language = 'php';
  710. const code = document.createElement('code');
  711. code.className = 'language-' + language;
  712. pre.textContent = '';
  713. pre.setAttribute('data-line', line)
  714. code.textContent = 'Loading…';
  715. pre.appendChild(code);
  716. var xhr = new XMLHttpRequest();
  717. xhr.open('GET', src, true);
  718. xhr.onreadystatechange = function () {
  719. if (xhr.readyState !== 4) {
  720. return;
  721. }
  722. if (xhr.status < 400 && xhr.responseText) {
  723. code.textContent = xhr.responseText;
  724. Prism.highlightElement(code);
  725. return;
  726. }
  727. if (xhr.status === 404) {
  728. code.textContent = '✖ Error: File could not be found';
  729. return;
  730. }
  731. if (xhr.status >= 400) {
  732. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  733. return;
  734. }
  735. code.textContent = '✖ Error: An unknown error occurred';
  736. };
  737. xhr.send(null);
  738. });
  739. }
  740. const modalButtons = document.querySelectorAll("[data-modal]");
  741. const openedAsLocalFile = window.location.protocol === 'file:';
  742. if (modalButtons.length > 0 && openedAsLocalFile) {
  743. console.warn(
  744. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  745. 'browsers block XHR requests when a page is opened this way'
  746. );
  747. }
  748. modalButtons.forEach(function (trigger) {
  749. if (openedAsLocalFile) {
  750. trigger.setAttribute("hidden", "hidden");
  751. }
  752. trigger.addEventListener("click", function (event) {
  753. event.preventDefault();
  754. const modal = document.getElementById(trigger.dataset.modal);
  755. if (!modal) {
  756. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  757. return;
  758. }
  759. modal.classList.add("phpdocumentor-modal__open");
  760. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  761. const exits = modal.querySelectorAll("[data-exit-button]");
  762. exits.forEach(function (exit) {
  763. exit.addEventListener("click", function (event) {
  764. event.preventDefault();
  765. modal.classList.remove("phpdocumentor-modal__open");
  766. });
  767. });
  768. });
  769. });
  770. })();
  771. </script>
  772. </article>
  773. </section>
  774. <section class="phpdocumentor-on-this-page__sidebar">
  775. <section class="phpdocumentor-on-this-page__content">
  776. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  777. <ul class="phpdocumentor-list -clean">
  778. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  779. <li>
  780. <ul class="phpdocumentor-list -clean">
  781. <li><a href="classes/chillerlan-QRCode-Data-QRData.html#toc-properties">Properties</a></li>
  782. <li><a href="classes/chillerlan-QRCode-Data-QRData.html#toc-methods">Methods</a></li>
  783. </ul>
  784. </li>
  785. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  786. <li>
  787. <ul class="phpdocumentor-list -clean">
  788. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#property_bitBuffer">$bitBuffer</li>
  789. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#property_dataSegments">$dataSegments</li>
  790. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#property_eccLevel">$eccLevel</li>
  791. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#property_maxBitsForEcc">$maxBitsForEcc</li>
  792. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#property_options">$options</li>
  793. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#property_version">$version</li>
  794. </ul>
  795. </li>
  796. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  797. <li>
  798. <ul class="phpdocumentor-list -clean">
  799. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method___construct">__construct()</a></li>
  800. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method_estimateTotalBitLength">estimateTotalBitLength()</a></li>
  801. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method_getBitBuffer">getBitBuffer()</a></li>
  802. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method_getMinimumVersion">getMinimumVersion()</a></li>
  803. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method_setBitBuffer">setBitBuffer()</a></li>
  804. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method_setData">setData()</a></li>
  805. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method_writeMatrix">writeMatrix()</a></li>
  806. <li class=""><a href="classes/chillerlan-QRCode-Data-QRData.html#method_writeBitBuffer">writeBitBuffer()</a></li>
  807. </ul>
  808. </li>
  809. </ul>
  810. </section>
  811. </section>
  812. </div>
  813. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  814. <section class="phpdocumentor-search-results__dialog">
  815. <header class="phpdocumentor-search-results__header">
  816. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  817. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  818. </header>
  819. <section class="phpdocumentor-search-results__body">
  820. <ul class="phpdocumentor-search-results__entries"></ul>
  821. </section>
  822. </section>
  823. </section>
  824. </div>
  825. <a href="classes/chillerlan-QRCode-Data-QRData.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  826. </main>
  827. <script>
  828. cssVars({});
  829. </script>
  830. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  831. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  832. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  833. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  834. </body>
  835. </html>