<?php
/**
 * @license MIT
 *
 * Modified by emberprice on 29-July-2026 using {@see https://github.com/BrianHenryIE/strauss}.
 */

namespace EmberPrice\Vendor\PhpOffice\PhpSpreadsheet\Style\NumberFormat\Wizard;

enum CurrencyNegative
{
    case minus;
    case redMinus;
    case parentheses;
    case redParentheses;

    public function start(): string
    {
        return match ($this) {
            self::minus, self::redMinus => '-',
            self::parentheses, self::redParentheses => '\(',
        };
    }

    public function end(): string
    {
        return match ($this) {
            self::minus, self::redMinus => '',
            self::parentheses, self::redParentheses => '\)',
        };
    }

    public function color(): string
    {
        return match ($this) {
            self::redParentheses, self::redMinus => '[Red]',
            self::parentheses, self::minus => '',
        };
    }
}
