22 lines
465 B
PHP
22 lines
465 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Filament\Support\Contracts\HasLabel;
|
|
|
|
enum BlockedPeriodPurpose: string implements HasLabel
|
|
{
|
|
case OwnUse = 'own_use';
|
|
case Maintenance = 'maintenance';
|
|
case Other = 'other';
|
|
|
|
public function getLabel(): string
|
|
{
|
|
return match ($this) {
|
|
self::OwnUse => 'Eigenbelegung',
|
|
self::Maintenance => 'Wartung / Renovierung',
|
|
self::Other => 'Sonstige Sperre',
|
|
};
|
|
}
|
|
}
|