QrEccLevel

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.

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

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