<?php

declare(strict_types=1);

namespace Seka\Vzdelavanie\Events\Testovanie;

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

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

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

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