Add MDConservationReportTypeSet
This commit is contained in:
parent
5c65e2e6e4
commit
7bc28d5d30
2
l18n
2
l18n
|
@ -1 +1 @@
|
|||
Subproject commit 6d52ec1208b27211957290d23c1b5432ce032f16
|
||||
Subproject commit 9d3453e4c19a719b1b2a41ff080638f63decec0b
|
35
src/MDConservationReportTypeSet.php
Normal file
35
src/MDConservationReportTypeSet.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?PHP
|
||||
/**
|
||||
* Contains a class of available conservation report types.
|
||||
*
|
||||
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
|
||||
/**
|
||||
* Class containing static functions for getting available conservation report types.
|
||||
*/
|
||||
final class MDConservationReportTypeSet extends MDValueSet {
|
||||
|
||||
const REPORT_TYPES = [
|
||||
'damage',
|
||||
'conservation',
|
||||
'condition',
|
||||
'restoration',
|
||||
'other',
|
||||
];
|
||||
|
||||
/**
|
||||
* Gets a sorted 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::REPORT_TYPES, "conservation_report_type_set", "conservation_report_type_set");
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user