From c4a95ea51156bf1eab41f118e10908a870c96d10 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Wed, 27 Jan 2021 13:11:29 +0100 Subject: [PATCH] Add MDPodcastContributorsSet --- l18n | 2 +- src/MDPodcastContributorsSet.php | 33 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 src/MDPodcastContributorsSet.php diff --git a/l18n b/l18n index 812a27e..2c74a45 160000 --- a/l18n +++ b/l18n @@ -1 +1 @@ -Subproject commit 812a27ec0b87560fc37cc3796b822885348f15c4 +Subproject commit 2c74a458f34b8d1976fe18361fe10ea535a94d00 diff --git a/src/MDPodcastContributorsSet.php b/src/MDPodcastContributorsSet.php new file mode 100644 index 0000000..f8e621a --- /dev/null +++ b/src/MDPodcastContributorsSet.php @@ -0,0 +1,33 @@ + + */ +declare(strict_types = 1); + +/** + * Class containing available place types. + */ +final class MDPodcastContributorsSet extends MDValueSet { + + const AVAILABLE_ROLES = [ + 'onair', + 'organization', + 'recording', + 'technical_support', + ]; + + /** + * 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::AVAILABLE_ROLES, "podcast_contributor_roles", "podcast_contributor_roles"); + + } +}