MappingSource.php
- Pfad:
src/Domain/ValueObject/MappingSource.php - Namespace: Domain\ValueObject
- Zeilen: 32 | Größe: 576 Bytes
- Geändert: 2025-12-25 20:06:12 | Gescannt: 2025-12-31 10:22:15
Code Hygiene Score: 100
- Dependencies: 100 (25%)
- LOC: 100 (20%)
- Methods: 100 (20%)
- Secrets: 100 (15%)
- Classes: 100 (10%)
- Magic Numbers: 100 (10%)
Keine Issues gefunden.
Klassen 1
-
MappingSourceenum Zeile 9
Funktionen 3
-
isAutomatic()public Zeile 14 -
isManual()public Zeile 19 -
label()public Zeile 24
Verwendet von 2
Code
<?php
declare(strict_types=1);
namespace Domain\ValueObject;
// @responsibility: Quelle eines Taxonomie-Mappings (automatisch vs. manuell)
enum MappingSource: string
{
case AUTO = 'auto';
case MANUAL = 'manual';
public function isAutomatic(): bool
{
return $this === self::AUTO;
}
public function isManual(): bool
{
return $this === self::MANUAL;
}
public function label(): string
{
return match ($this) {
self::AUTO => 'Automatisch',
self::MANUAL => 'Manuell',
};
}
}