<?php

namespace App\Http\Requests;

use App\Enums\QueueStatus;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class QueueStatusRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'status' => ['required', Rule::enum(QueueStatus::class)],
            'reason' => ['nullable', 'string', 'max:500'],
        ];
    }
}
