'erledigt', self::External => 'übernimmt das Portal', self::Open => 'zu tun', self::Problem => 'Problem', self::Waiting => 'wartet', self::Later => 'später', self::NotApplicable => 'entfällt', }; } public function getColor(): string { return match ($this) { self::Done, self::External => 'success', self::Open => 'warning', self::Problem => 'danger', self::Waiting => 'info', self::Later, self::NotApplicable => 'gray', }; } public function icon(): string { return match ($this) { self::Done, self::External => '✓', self::Open => '●', self::Problem => '!', self::Waiting => '…', self::Later => '○', self::NotApplicable => '–', }; } /** * Whether the landlord has to act. */ public function needsAction(): bool { return $this === self::Open || $this === self::Problem; } }