Table of contents
Namespace: Com\Tecnick\Barcode\Type\Square\HanXin
Backing type: string
File: HanXinEccLevel.php line 34
Backed enum for the Han Xin Code error correction level.
Tags
- since: 2026-09-02
- 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
L1
File: HanXinEccLevel.php line 37
L2
File: HanXinEccLevel.php line 40
L3
File: HanXinEccLevel.php line 43
L4
File: HanXinEccLevel.php line 46
Methods
fromLoose()
File: HanXinEccLevel.php line 56
public static fromLoose(string|self $value) : self
Accepts the canonical token, the level number alone or an enum instance (returned unchanged). Unknown values fall back to L1.
Parameters
- $value : string|self: Error correction level token or enum case.
Return values
self
getLevel()
File: HanXinEccLevel.php line 68
public getLevel() : int
Return values
int