Add new marking type etched
This commit is contained in:
3 files changed
+6
-1
No files matched your search
+1
-1
Submodule l18n updated: c5257ae91b...be210d29c3.
@@ -36,6 +36,7 @@ final class MDMarkingTypesSet extends MDValueSet {
|
||||
'glaze',
|
||||
'sanded',
|
||||
'abraded',
|
||||
'etched',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -30,6 +30,7 @@ enum MDMarkingType implements MDValueEnumInterface, JsonSerializable {
|
||||
case glaze;
|
||||
case sanded;
|
||||
case abraded;
|
||||
case etched;
|
||||
|
||||
/**
|
||||
* Returns a value of this type based on a string.
|
||||
@@ -65,6 +66,7 @@ public static function fromString(string $input):MDMarkingType {
|
||||
'glaze' => self::glaze,
|
||||
'sanded' => self::sanded,
|
||||
'abraded' => self::abraded,
|
||||
'etched' => self::etched,
|
||||
default => throw new MDpageParameterNotFromListException("Unknown marking type"),
|
||||
};
|
||||
|
||||
@@ -104,6 +106,7 @@ public static function fromInt(int $input):MDMarkingType {
|
||||
22 => self::glaze,
|
||||
23 => self::sanded,
|
||||
24 => self::abraded,
|
||||
25 => self::etched,
|
||||
default => throw new MDpageParameterNotFromListException("Unknown marking type"),
|
||||
};
|
||||
|
||||
@@ -159,6 +162,7 @@ public function toInt():int {
|
||||
self::glaze => 22,
|
||||
self::sanded => 23,
|
||||
self::abraded => 24,
|
||||
self::etched => 25,
|
||||
# default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user