You've already forked Atomcms-edit
40 lines
798 B
PHP
Executable File
40 lines
798 B
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Enums;
|
|
|
|
enum AchievementCategory: string
|
|
{
|
|
case Identity = 'identity';
|
|
case Explore = 'explore';
|
|
case Music = 'music';
|
|
case Social = 'social';
|
|
case Games = 'games';
|
|
case RoomBuilder = 'room_builder';
|
|
case Pets = 'pets';
|
|
case Tools = 'tools';
|
|
case Events = 'events';
|
|
|
|
/**
|
|
* @return array<string>
|
|
*/
|
|
public static function values(): array
|
|
{
|
|
return array_column(self::cases(), 'value');
|
|
}
|
|
|
|
/**
|
|
* @return array<string, string>
|
|
*/
|
|
public static function toInput(): array
|
|
{
|
|
$allCurrencies = self::cases();
|
|
|
|
return array_combine(
|
|
array_column($allCurrencies, 'value'),
|
|
array_column($allCurrencies, 'name'),
|
|
);
|
|
}
|
|
}
|