Encode

Symbol builder for the MicroQrCode Barcode type class

Namespace: Com\Tecnick\Barcode\Type\Square\MicroQrCode

Extends: Compaction

File: Encode.php line 37

Symbol builder for the MicroQrCode Barcode type class

Tags

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

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