<?php

declare(strict_types=1);

namespace Database\Factories;

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

/**
 * Class TestovanieOdpovedFactory
 *
 * @package 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()),
        ];
    }
}
