<?php

declare(strict_types=1);

namespace Seka\Portal\Modul\Vzdelavanie\Events\Kniznica;

use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Seka\Portal\Modul\Vzdelavanie\Dtos\Kniznica\UcebnicaDTO;

/**
 * Class UcebnyMaterialActionEvent
 *
 * @package Seka\Portal\Modul\Vzdelavanie\Events\Kniznica
 */
abstract class UcebnyMaterialActionEvent
{
    use Dispatchable, SerializesModels, ActivityLogTrait;

    /**
     * @var \Seka\Portal\Modul\Vzdelavanie\Dtos\Kniznica\UcebnicaDTO
     */
    public UcebnicaDTO $ucebnica;

    /**
     * UcebnyMaterialActionEvent constructor.
     *
     * @param \Seka\Portal\Modul\Vzdelavanie\Dtos\Kniznica\UcebnicaDTO $ucebnica
     */
    public function __construct(UcebnicaDTO $ucebnica)
    {
        $this->ucebnica = $ucebnica;
        $this->setActivityLogParameters();
    }
}
