Table of contents
Namespace: Com\Tecnick\Barcode\Type\Square\Aztec
class Encode extends Bitstream
Extends: Bitstream
Source: src/Type/Square/Aztec/Encode.php:37
Encode for Aztec Barcode type class
Methods
__construct()
Aztec main encoder.
public __construct(
string $code,
int $ecc = 33,
int $eci = 0,
string $hint = 'A',
string $mode = 'A'
)
Parameters:
$code(string): The code to encode.$ecc(int): The error correction code percentage of error check words.$eci(int): The ECI mode to use.$hint(string): The mode to use.$mode(string): The mode to use (A = Automatic; F = Full Range mode).
Throws:
Source: src/Type/Square/Aztec/Encode.php:62
getGrid()
Returns the bidimensional grid containing the encoded data.
public getGrid(): array<int,int[]>
Returns: array<int,int[]>