30 lines
591 B
PHP
30 lines
591 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use BenSampo\Enum\Enum;
|
|
|
|
/**
|
|
* @method static static modifier()
|
|
* @method static static modified()
|
|
* @method static static storno()
|
|
*/
|
|
final class OrderFlag extends Enum
|
|
{
|
|
const modifier = 'modifier';
|
|
|
|
const modified = 'modified';
|
|
|
|
const storno = 'storno';
|
|
|
|
public static function getDescription($value): string
|
|
{
|
|
return match ($value) {
|
|
self::modifier => 'módosító',
|
|
self::modified => 'módosított',
|
|
self::storno => 'stornó',
|
|
default => 'eredeti',
|
|
};
|
|
}
|
|
}
|