forked from metin2/web
WIP: started implementing shop, multi-language
This commit is contained in:
17
app/Models/Enums/ShopItemPricingEnum.php
Normal file
17
app/Models/Enums/ShopItemPricingEnum.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
enum ShopItemPricingEnum: string
|
||||
{
|
||||
case CASH = 'CASH';
|
||||
case MILEAGE = 'MILEAGE';
|
||||
|
||||
public function description(): string
|
||||
{
|
||||
return match($this) {
|
||||
self::CASH => __('shop/main.currency.cash'),
|
||||
self::MILEAGE => __('shop/main.currency.mileage')
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user