<?php

declare(strict_types=1);

namespace App\Business\Settlement\Enums;

use App\Support\Concerns\TranslatesDberpBackedEnumLabel;

enum SettlementAdjustmentDirection: string
{
    use TranslatesDberpBackedEnumLabel;

    case Increase = 'increase';
    case Decrease = 'decrease';

    public function signedAmount(float $amount): float
    {
        return match ($this) {
            self::Increase => $amount,
            self::Decrease => -$amount,
        };
    }

    /**
     * @return array<string, string>
     */
}
