Add two new marking types: sanded and abraded
This commit is contained in:
3 files changed
+12
-1
No files matched your search
@@ -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"),
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user