DatamatrixEncoding

Backed enum for the Data Matrix default encoding scheme. The backing value of each case is a public key of Data::ENCOPTS.

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

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