<?php

declare(strict_types=1);

namespace Seka\Portal\Modul\Vzdelavanie\Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Seka\Portal\Modul\Vzdelavanie\Enums\ModelStatusEnum;
use Seka\Portal\Modul\Vzdelavanie\Models\Testovanie\HodnotenieOdpovedeEnum;
use Seka\Portal\Modul\Vzdelavanie\Models\Testovanie\Odpoved;

/**
 * Class TestovanieOdpovedFactory
 *
 * @package Seka\Portal\Modul\Vzdelavanie\Database\Factories
 */
class TestovanieOdpovedFactory extends Factory
{
    /**
     * @var string
     */
    protected $model = Odpoved::class;

    /**
     * @return array
     */
    public function definition(): array
    {
        return [
            'znenie' => $this->faker->realText(rand(50, 100)),
            'hodnotenie' => $this->faker->randomElement(HodnotenieOdpovedeEnum::cases()),
            'stav' => $this->faker->randomElement(ModelStatusEnum::cases()),
        ];
    }
}
