<?php

declare(strict_types=1);

namespace Seka\Portal\Modul\Vzdelavanie\Http\Requests\Sprava\Testovanie\Odpoved;

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
use Seka\Portal\Modul\Vzdelavanie\Enums\ModelStatusEnum;
use Seka\Portal\Modul\Vzdelavanie\Models\Testovanie\HodnotenieOdpovedeEnum;

/**
 * Class OdpovedStoreRequest
 *
 * @package Seka\Portal\Modul\Vzdelavanie\Http\Requests\Sprava\Testovanie\Odpoved
 */
final class OdpovedStoreRequest extends FormRequest
{
    /**
     * @return array
     */
    public function rules(): array
    {
        return [
            'znenie' => 'required|min:10|max:8192',
            'stav' => [
                'required',
                Rule::enum(ModelStatusEnum::class),
            ],
            'hodnotenie' => [
                'required',
                Rule::enum(HodnotenieOdpovedeEnum::class),
            ],
        ];
    }
}
