<?php

declare(strict_types=1);

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

use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Seka\Portal\Modul\Vzdelavanie\Events\Kniznica\ActivityLogTrait;

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

    /**
     * @var \Seka\Portal\Modul\Vzdelavanie\Models\Testovanie\Test|\Seka\Portal\Modul\Vzdelavanie\Models\Pouzivatel\Testovanie\Test
     */
    public $test;

    /**
     * TestGenerated constructor.
     *
     * @param \Seka\Portal\Modul\Vzdelavanie\Models\Testovanie\Test|\Seka\Portal\Modul\Vzdelavanie\Models\Pouzivatel\Testovanie\Test $test
     */
    public function __construct($test)
    {
        $this->test = $test;
        $this->setActivityLogParameters();
    }
}
