Table of contents
Namespace: Com\Tecnick\Barcode\Type\Square\MicroQrCode
Backing type: string
File: MicroQrEncodingMode.php line 35
Backed enum for the Micro QR Code encodation mode. The Kanji, ECI, FNC1 and structured append modes are not available.
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
Cases
Auto
File: MicroQrEncodingMode.php line 38
NM
File: MicroQrEncodingMode.php line 41
AN
File: MicroQrEncodingMode.php line 44
Byte
File: MicroQrEncodingMode.php line 47
Methods
fromLoose()
File: MicroQrEncodingMode.php line 57
public static fromLoose(string|self $value) : self
Accepts the canonical token or an enum instance (returned unchanged). Unknown values fall back to the automatic mode.
Parameters
- $value : string|self: Encodation mode token or enum case.
Return values
self
getMode()
File: MicroQrEncodingMode.php line 70
public getMode() : int
Return values
int