'Pending', self::COMPLETED => 'Completed', self::FAILED => 'Failed', self::REFUNDED => 'Refunded', }; } public function color(): string { return match ($this) { self::PENDING => 'amber', self::COMPLETED => 'green', self::FAILED => 'red', self::REFUNDED => 'zinc', }; } }