Add MDDisposalMethodSet for ways to dispose of objects
This commit is contained in:
parent
decbe56787
commit
a79b239b27
44
src/MDDisposalMethodSet.php
Normal file
44
src/MDDisposalMethodSet.php
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<?PHP
|
||||||
|
/**
|
||||||
|
* Contains a class for listing possible ways of disposing objects.
|
||||||
|
*
|
||||||
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
||||||
|
*/
|
||||||
|
declare(strict_types = 1);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains a class for listing possible ways of disposing objects.
|
||||||
|
*/
|
||||||
|
final class MDDisposalMethodSet extends MDValueSet {
|
||||||
|
|
||||||
|
const METHODS = [
|
||||||
|
'',
|
||||||
|
'sold',
|
||||||
|
'destroyed',
|
||||||
|
'garbage',
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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::METHODS, "disposal_method_set", "disposal_method_set");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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::METHODS, "disposal_method_set", "disposal_method_set");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user