Table of contents
Namespace: Com\Tecnick\Barcode\Type\Square\QrCode
Backing type: string
File: QrEccLevel.php line 35
Backed enum for the QR Code error correction level. The backing value of each case is the letter used as a key of Data::ECC_LEVELS.
Tags
- since: 2026-07-17
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2010-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
L
File: QrEccLevel.php line 38
M
File: QrEccLevel.php line 41
Q
File: QrEccLevel.php line 44
H
File: QrEccLevel.php line 47
Methods
fromLoose()
File: QrEccLevel.php line 57
public static fromLoose(string|self $value) : self
Accepts the canonical letter or an enum instance (returned unchanged). Unknown values fall back to L, matching the lenient behavior of QrCode.
Parameters
- $value : string|self: ECC level letter or enum case.
Return values
self