<?php

declare(strict_types=1);

namespace App\Business\Purchase\Enums;

use App\Support\Concerns\TranslatesDberpBackedEnumLabel;

enum PurchaseOrderSourceMode: string
{
    use TranslatesDberpBackedEnumLabel;

    case Manual = 'manual';
    case PurchaseRequest = 'purchase_request';
    case InquiryQuote = 'inquiry_quote';

    /**
     * @return array<string, string>
     */
    public static function options(): array
    {
        return [
            self::Manual->value => __('dberp.options.purchase_order_source_mode.manual'),
            self::PurchaseRequest->value => __('dberp.options.purchase_order_source_mode.purchase_request'),
            self::InquiryQuote->value => __('dberp.options.purchase_order_source_mode.inquiry_quote'),
        ];
    }
}
