adrema/app/Prevention/Enums/Prevention.php

22 lines
441 B
PHP
Raw Normal View History

2024-07-02 22:55:37 +02:00
<?php
namespace App\Prevention\Enums;
enum Prevention
{
case EFZ;
case PS;
case MOREPS;
2024-07-18 13:57:52 +02:00
case VK;
2024-07-02 22:55:37 +02:00
public function text(): string
{
return match ($this) {
static::EFZ => 'erweitertes Führungszeugnis',
static::PS => 'Präventionsschulung Basis Plus',
static::MOREPS => 'Präventionsschulung (Auffrischung)',
2024-07-18 13:57:52 +02:00
static::VK => 'Verhaltenskodex',
2024-07-02 22:55:37 +02:00
};
}
}