exceptions
l18n
src
classes
enums
MDActorVariantTypesSet.php
MDAppointmentAttendanceModeSet.php
MDAppointmentContributorsSet.php
MDAppointmentRecordingSet.php
MDAppointmentStatusSet.php
MDBlockedMailserverSet.php
MDCloserLocationTypesSet.php
MDColorsSet.php
MDConservationReportTypeSet.php
MDConservationStatusSet.php
MDCurrenciesSet.php
MDDataHistorySubjectsSet.php
MDDisposalMethodSet.php
MDEntryTypesSet.php
MDEventsSet.php
MDExhibitionContributorsSet.php
MDExternalHostingSet.php
MDGenderSet.php
MDLanguagesSet.php
MDLicensesSet.php
MDLoanTypesSet.php
MDMarkingTypesSet.php
MDNodaRepositoriesSet.php
MDObjectFormSet.php
MDObjectPositionsSet.php
MDObjectPublicationBackgrounds.php
MDObjectStatusSet.php
MDObjectSyndicationSet.php
MDPhoneTypesSet.php
MDPlacetypesSet.php
MDPodcastContributorsSet.php
MDProcessTypesSet.php
MDRecordingTypesSet.php
MDRequirementsSet.php
MDResearchStatusSet.php
MDSourceTypeSet.php
MDSpaceAccessStatusSet.php
MDSpaceTypesSet.php
MDTitleTypesSet.php
MDUnitsSet.php
MDValueSet.php
tests
.git.template
.gitattributes
.gitmodules
LICENSE
README.md
phpstan.neon
45 lines
1.0 KiB
PHP
45 lines
1.0 KiB
PHP
<?PHP
|
|
/**
|
|
* Contains a list of types of loans.
|
|
*
|
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
|
*/
|
|
declare(strict_types = 1);
|
|
|
|
/**
|
|
* Contains a list of types of loans.
|
|
*/
|
|
final class MDLoanTypesSet extends MDValueSet {
|
|
|
|
const DEFAULT_LOAN_TYPE = 'outgoing';
|
|
|
|
const LOAN_TYPES = [
|
|
'outgoing',
|
|
'incoming',
|
|
];
|
|
|
|
/**
|
|
* Gets an unsorted list of the entries in a translated version.
|
|
*
|
|
* @param MDTlLoader $tlLoader Translation loader.
|
|
*
|
|
* @return array<string>
|
|
*/
|
|
public static function getUnsortedList(MDTlLoader $tlLoader):array {
|
|
return parent::getTlUnsortedList($tlLoader, self::LOAN_TYPES, "loan_types", "loan_types");
|
|
|
|
}
|
|
|
|
/**
|
|
* Gets a list of the entries in a translated version.
|
|
*
|
|
* @param MDTlLoader $tlLoader Translation loader.
|
|
*
|
|
* @return array<string>
|
|
*/
|
|
public static function getSortedList(MDTlLoader $tlLoader):array {
|
|
return parent::getTlSortedList($tlLoader, self::LOAN_TYPES, "loan_types", "loan_types");
|
|
|
|
}
|
|
}
|