<?php

declare(strict_types=1);

namespace Seka\Portal\Modul\Terminy\Livewire\Components\Udalosti;

use Illuminate\Contracts\View\View;
use Livewire\Component;
use Seka\Portal\Modul\Terminy\Entities\Udalost\DruhUdalosti;

/**
 * Class Druh
 *
 * @package Seka\Portal\Modul\Terminy\Livewire\Components\Udalosti
 */
final class Druh extends Component
{
    /**
     * @var \Seka\Portal\Modul\Terminy\Entities\Udalost\DruhUdalosti[]
     */
    public array $zoznam;

    /**
     */
    public function mount(): void
    {
        $this->zoznam = DruhUdalosti::cases();
    }

    /**
     * @return \Illuminate\Contracts\View\View
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
     */
    public function render(): View
    {
        return view('Terminy::livewire.components.udalosti.druh');
    }

    /**
     * @return \Seka\Portal\Modul\Terminy\Entities\Udalost\DruhUdalosti[]
     */
    public function zoznam(): array
    {
        return $this->zoznam;
    }
}
