diff --git a/l18n b/l18n index 2305d2c..5b72321 160000 --- a/l18n +++ b/l18n @@ -1 +1 @@ -Subproject commit 2305d2c78b71c5ecfdf56815102cbade8d9332ea +Subproject commit 5b72321de74d443356d1a0d5fb7b49927267a309 diff --git a/src/MDGenderSet.php b/src/MDGenderSet.php new file mode 100644 index 0000000..01f4e5e --- /dev/null +++ b/src/MDGenderSet.php @@ -0,0 +1,32 @@ + + */ +declare(strict_types = 1); + +/** + * Contains a class for listing the possible genders. + */ +final class MDGenderSet extends MDValueSet { + + const GENDERS = [ + '', + 'female', + 'male', + 'gender', + ]; + + /** + * Gets a sorted list of the entries in a translated version. + * + * @param MDTlLoader $tlLoader Translation loader. + * + * @return array + */ + public static function getSortedList(MDTlLoader $tlLoader):array { + return parent::getTlSortedList($tlLoader, self::GENDERS, "gender_set", "gender_set"); + + } +} diff --git a/src/MDObjectFormSet.php b/src/MDObjectFormSet.php new file mode 100644 index 0000000..b261540 --- /dev/null +++ b/src/MDObjectFormSet.php @@ -0,0 +1,34 @@ + + */ +declare(strict_types = 1); + +/** + * Contains a class for listing the possible forms for objects. + */ +final class MDObjectFormSet extends MDValueSet { + + const FORMS = [ + '', + 'cube', + 'cuboid', + 'sphere', + 'cone', + 'cylinder', + ]; + + /** + * Gets a sorted list of the entries in a translated version. + * + * @param MDTlLoader $tlLoader Translation loader. + * + * @return array + */ + public static function getSortedList(MDTlLoader $tlLoader):array { + return parent::getTlSortedList($tlLoader, self::FORMS, "object_form_set", "object_form_set"); + + } +}