Table of contents
Namespace: Com\Tecnick\Barcode\Type\Square\MicroQrCode
enum MicroQrEncodingMode: string
Source: src/Type/Square/MicroQrCode/MicroQrEncodingMode.php:35
Backed enum for the Micro QR Code encodation mode. The Kanji, ECI, FNC1 and structured append modes are not available.
Cases
Auto = '': Mode that yields the shortest bit stream.NM = 'NM': Numeric.AN = 'AN': Alphanumeric.Byte = '8B': 8-bit byte.
Methods
fromLoose()
Resolve a loose encodation mode value to the matching enum case.
Accepts the canonical token or an enum instance (returned unchanged). Unknown values fall back to the automatic mode.
public static fromLoose(string|self $value): self
Parameters:
$value(string|self): Encodation mode token or enum case.
Returns: self
Source: src/Type/Square/MicroQrCode/MicroQrEncodingMode.php:57
getMode()
Returns the mode value of Table 2 of ISO/IEC 18004, or a negative value for the automatic mode.
public getMode(): int
Returns: int
Source: src/Type/Square/MicroQrCode/MicroQrEncodingMode.php:70