23 lines
346 B
PHP
Executable File
23 lines
346 B
PHP
Executable File
<?php
|
|
|
|
namespace Mautic\UserBundle\Event;
|
|
|
|
use Mautic\UserBundle\Entity\User;
|
|
use Symfony\Contracts\EventDispatcher\Event;
|
|
|
|
class LoginEvent extends Event
|
|
{
|
|
public function __construct(
|
|
private User $user,
|
|
) {
|
|
}
|
|
|
|
/**
|
|
* @return User|null
|
|
*/
|
|
public function getUser()
|
|
{
|
|
return $this->user;
|
|
}
|
|
}
|