<?php

declare(strict_types=1);

namespace App\Dtos;

use App\Models\Informacia\Enums\StavInformacieEnum;
use Spatie\DataTransferObject\FlexibleDataTransferObject;

/**
 * Class InformaciaDto
 *
 * DTO trieda sluziaca na prenos dat informacii v systeme
 *
 * @package App\Dtos
 * @author  Radoslav Lukac <dev@seka.sk>
 */
final class InformaciaDto extends FlexibleDataTransferObject
{
    use ModelToDtoTrait;

    /**
     * Jedinecny identifikator informacie
     *
     * @var int|null
     */
    public ?int $id;

    /**
     * Nadpis informacie
     *
     * @var string|null
     */
    public ?string $titulok;

    /**
     * @var string|null
     */
    public ?string $uvod;

    /**
     * Textovy obsah informacie
     *
     * @var string|null
     */
    public ?string $obsah;

    /**
     * Datum a cas planovaneho zverejnenia
     *
     * @var string|null
     */
    public ?string $planovany_cas_zverejnenia;

    /**
     * Aktualny stav informacie
     */
    public ?StavInformacieEnum $stav;

    /**
     * Indikator odoslania emailu na PEK
     *
     * @var bool
     */
    public bool $odoslat_email_na_pek = false;

    /**
     * Datum a cas skutocneho zverejnenia
     */
    public ?string $cas_zverejnenia;

    /**
     * ID autora informacie
     *
     * @var int|null
     */
    public ?int $vytvoril_id;

    /**
     * Autor informacie
     *
     * @var \App\Dtos\PouzivatelDto
     */
    public PouzivatelDto $vytvoril;

    /**
     * Pouzivatelske role pre zverejnenie
     *
     * @var array|null
     */
    public ?array $zverejnit_pre_pouzivatelov_podla_role;

    /**
     * Indikator odoslania emailu pouzivatelom
     *
     * @var bool
     */
    public bool $odoslat_email_pouzivatelom = false;

    /**
     * Indikator odoslania push notifikacii
     *
     * @var bool
     */
    public bool $odoslat_push_notifikacie_pouzivatelom = false;

    /**
     * Indikator odporucaneho obsahu
     *
     * @var bool
     */
    public bool $odporucane = false;

    /**
     * @var string|null
     */
    public ?string $created_at;

    /**
     * @var string|null
     */
    public ?string $updated_at;

    /**
     * @var string|null
     */
    public ?string $deleted_at;

    /**
     * @var string|null
     */
    public ?string $hash_id;

    /**
     * @var int
     */
    public int $pocet_vsetkych_hodnoteni;

    /**
     * @var int
     */
    public int $pocet_kladnych_hodnoteni;

    /**
     * @var int
     */
    public int $pocet_zapornych_hodnoteni;
}
