<?php

declare(strict_types=1);

namespace App\Events;

use DateTime;
use Illuminate\Contracts\Auth\Authenticatable;
use Seka\Vzdelavanie\Events\Kniznica\ActivityLogTrait;

/**
 * Class UserLoggingAction
 *
 * @package App\Events
 */
abstract class UserLoggingAction
{
    use ActivityLogTrait;

    /**
     * @var \DateTime
     */
    public DateTime $casovaPeciatka;

    /**
     * Create a new event instance.
     *
     * @param \Illuminate\Contracts\Auth\Authenticatable $pouzivatel
     * @param \DateTime                                  $casovaPeciatka
     */
    public function __construct(Authenticatable $pouzivatel, DateTime $casovaPeciatka)
    {
        $this->pouzivatel = $pouzivatel;
        $this->casovaPeciatka = $casovaPeciatka;
        $this->setActivityLogParameters();
    }
}
