<?php

declare(strict_types=1);

namespace Database\Factories;

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

/**
 * Class TestovanieOtazkaFactory
 *
 * @package Database\Factories
 */
class TestovanieOtazkaFactory extends Factory
{
    /**
     * @var string
     */
    protected $model = Otazka::class;

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