EscolaLMS/Webinar

View on GitHub
src/Events/Webinar.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace EscolaLms\Webinar\Events;

use EscolaLms\Core\Models\User;
use EscolaLms\Webinar\Models\Webinar as WebinarModel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

abstract class Webinar
{
    use Dispatchable, SerializesModels;

    private User $user;
    private WebinarModel $webinar;

    public function __construct(User $user, WebinarModel $webinar)
    {
        $this->user = $user;
        $this->webinar = $webinar;
    }

    public function getUser(): User
    {
        return $this->user;
    }

    public function getWebinar(): WebinarModel
    {
        return $this->webinar;
    }
}