diff --git a/l18n b/l18n index 03d5705..38b7b31 160000 --- a/l18n +++ b/l18n @@ -1 +1 @@ -Subproject commit 03d5705fc36a1c69d4f0a6fad517421c2cf082f8 +Subproject commit 38b7b31fba2ac8be2dc1467fdf84bed9430fc073 diff --git a/src/MDCloserLocationTypesSet.php b/src/MDCloserLocationTypesSet.php new file mode 100644 index 0000000..f50ee22 --- /dev/null +++ b/src/MDCloserLocationTypesSet.php @@ -0,0 +1,32 @@ + + */ +declare(strict_types = 1); + +/** + * Class containing available types of closer locations. + */ +final class MDCloserLocationTypesSet extends MDValueSet { + + const CLOSER_LOCATION_TYPES = [ + "0", // '' + "1", // Place of recording + "2", // Place of finding + "3", // Previous place + ]; + + /** + * Gets a 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::CLOSER_LOCATION_TYPES, "closer_location_types_set", "closer_location_types_set"); + + } +}