Add two new marking types: sanded and abraded

This commit is contained in:
jrenslin committed 2026-10-28 15:02:33 +01:00
1 parent f3f0f3459e
commit fa83f2653f
3 files changed
+12 -1

No files matched your search

+1 -1
Submodule l18n updated: f47127f618...c5257ae91b.
+3
View File
@@ -33,6 +33,9 @@ final class MDMarkingTypesSet extends MDValueSet {
'glued',
'painted',
'drawn',
'glaze',
'sanded',
'abraded',
];
/**
+8
View File
@@ -28,6 +28,8 @@ enum MDMarkingType implements MDValueEnumInterface, JsonSerializable {
case drawn;
case embroidered;
case glaze;
case sanded;
case abraded;
/**
* Returns a value of this type based on a string.
@@ -61,6 +63,8 @@ public static function fromString(string $input):MDMarkingType {
'drawn' => self::drawn,
'embroidered' => self::embroidered,
'glaze' => self::glaze,
'sanded' => self::sanded,
'abraded' => self::abraded,
default => throw new MDpageParameterNotFromListException("Unknown marking type"),
};
@@ -98,6 +102,8 @@ public static function fromInt(int $input):MDMarkingType {
20 => self::drawn,
21 => self::embroidered,
22 => self::glaze,
23 => self::sanded,
24 => self::abraded,
default => throw new MDpageParameterNotFromListException("Unknown marking type"),
};
@@ -151,6 +157,8 @@ public function toInt():int {
self::drawn => 20,
self::embroidered => 21,
self::glaze => 22,
self::sanded => 23,
self::abraded => 24,
# default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
};