DmreSize

Backed enum for the DMRE symbol size: the eighteen sizes of ISO/IEC 21471 as rows by columns, or Auto to choose the smallest one that fits the data.

Namespace: Com\Tecnick\Barcode\Type\Square\Dmre

Backing type: string

File: DmreSize.php line 35

Backed enum for the DMRE symbol size: the eighteen sizes of ISO/IEC 21471 as rows by columns, or Auto to choose the smallest one that fits the data.

Tags

Cases

Auto

File: DmreSize.php line 38

Size8x48

File: DmreSize.php line 41

Size8x64

File: DmreSize.php line 44

Size8x80

File: DmreSize.php line 47

Size8x96

File: DmreSize.php line 50

Size8x120

File: DmreSize.php line 53

Size8x144

File: DmreSize.php line 56

Size12x64

File: DmreSize.php line 59

Size12x88

File: DmreSize.php line 62

Size16x64

File: DmreSize.php line 65

Size20x36

File: DmreSize.php line 68

Size20x44

File: DmreSize.php line 71

Size20x64

File: DmreSize.php line 74

Size22x48

File: DmreSize.php line 77

Size24x48

File: DmreSize.php line 80

Size24x64

File: DmreSize.php line 83

Size26x40

File: DmreSize.php line 86

Size26x48

File: DmreSize.php line 89

Size26x64

File: DmreSize.php line 92

Methods

fromLoose()

File: DmreSize.php line 104

public static fromLoose(string|self $value) : self

Accepts the rows and columns separated by an upper or lower case X, with or without surrounding spaces, or an enum instance (returned unchanged). Unknown values fall back to Auto, matching the lenient behavior of Datamatrix.

Parameters

  • $value : string|self: Symbol size or enum case.

Return values

self