Table of contents
Namespace: Com\Tecnick\Barcode\Type\Square\Datamatrix
enum DatamatrixShape: string
Source: src/Type/Square/Datamatrix/DatamatrixShape.php:35
Backed enum for the Data Matrix symbol shape: S (square, default) or R (rectangular).
Cases
Methods
fromLoose()
Resolve a loose Data Matrix shape value to the matching enum case.
Accepts the canonical letter or an enum instance (returned unchanged). Unknown values fall back to Square, matching the lenient behavior of Datamatrix.
public static fromLoose(string|self $value): self
Parameters:
$value(string|self): Shape letter or enum case.
Returns: self