EscolaLMS/Auth

View on GitHub
src/Events/AccountMustBeEnableByAdmin.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace EscolaLms\Auth\Events;

use EscolaLms\Auth\Models\User;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class AccountMustBeEnableByAdmin
{
    use Dispatchable, SerializesModels;

    private User $user;
    private Authenticatable $registeredUser;

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

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

    public function getRegisteredUser(): Authenticatable
    {
        return $this->registeredUser;
    }
}