<?php

declare(strict_types=1);

namespace Seka\Vzdelavanie\Events\Kniznica;

use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Bus\Dispatchable;
use Seka\Vzdelavanie\Models\Kniznica\Ucebnica;
use Illuminate\Contracts\Auth\Authenticatable;

/**
 * Class UcebnyMaterialOpened
 *
 * @package Seka\Vzdelavanie\Events\Kniznica
 */
final class UcebnyMaterialOpened
{
    use Dispatchable, SerializesModels;

    /**
     * @var \Seka\Vzdelavanie\Models\Kniznica\Ucebnica
     */
    public Ucebnica $ucebnyMaterial;

    /**
     * @var \Illuminate\Contracts\Auth\Authenticatable
     */
    public Authenticatable $pouzivatel;

    /**
     * UcebnyMaterialOpened constructor.
     *
     * @param \Seka\Vzdelavanie\Models\Kniznica\Ucebnica $ucebnyMaterial
     * @param \Illuminate\Contracts\Auth\Authenticatable $pouzivatel
     */
    public function __construct(Ucebnica $ucebnyMaterial, Authenticatable $pouzivatel)
    {
        $this->ucebnyMaterial = $ucebnyMaterial;
        $this->pouzivatel = $pouzivatel;
    }
}
