Table of contents
Namespace: Com\Tecnick\Barcode\Type\Square\MicroQrCode
Extends: Compaction
File: Encode.php line 37
Symbol builder for the MicroQrCode Barcode type class
Tags
- since: 2026-09-01
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2015-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-barcode
Methods
__construct()
File: Encode.php line 106
public __construct(string $code, string $level, int $version, int $mode) : mixed
Parameters
- $code : string: Code to encode.
- $level : string: Error correction level (L, M or Q), or an empty string to select the smallest symbol.
- $version : int: Symbol version, from 1 to 4, or 0 to select the smallest symbol.
- $mode : int: Encodation mode, or a negative value to select the mode that yields the shortest bit stream.
Tags
- throws: Exception in case of error
getGrid()
File: Encode.php line 133
public getGrid() : array<int, string>
Return values
array<int, string>
getLevel()
File: Encode.php line 155
public getLevel() : string
Return values
string
getMask()
File: Encode.php line 163
public getMask() : int
Return values
int
getVersion()
File: Encode.php line 146
public getVersion() : int
Return values
int