19 lines
378 B
PHP
19 lines
378 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
enum PriceType: string
|
|
{
|
|
case Fixed = 'fixed';
|
|
case FromPrice = 'from_price';
|
|
case OnRequest = 'on_request';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::Fixed => 'Festpreis',
|
|
self::FromPrice => 'Ab-Preis',
|
|
self::OnRequest => 'Preis auf Anfrage',
|
|
};
|
|
}
|
|
}
|