Table of contents
Namespace: Com\Tecnick\Barcode\Type\Square\Datamatrix
Backing type: string
File: DatamatrixEncoding.php line 35
Backed enum for the Data Matrix default encoding scheme. The backing value of each case is a public key of Data::ENCOPTS.
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
ASCII
File: DatamatrixEncoding.php line 37
C40
File: DatamatrixEncoding.php line 39
TXT
File: DatamatrixEncoding.php line 41
X12
File: DatamatrixEncoding.php line 43
EDF
File: DatamatrixEncoding.php line 45
BASE256
File: DatamatrixEncoding.php line 47
Methods
fromLoose()
File: DatamatrixEncoding.php line 65
public static fromLoose(string|self $value) : self
Accepts the canonical scheme name, one of the ALIASES, or an enum instance (returned unchanged). Unknown values fall back to ASCII, matching the lenient behavior of Datamatrix.
Parameters
- $value : string|self: Encoding scheme name or enum case.
Return values
self