mirror of
https://github.com/quentin-g-dev/afup.git
synced 2026-03-26 02:02:15 +01:00
27 lines
417 B
PHP
27 lines
417 B
PHP
<?php
|
|
|
|
namespace AppBundle\Association\Event;
|
|
|
|
use AppBundle\Association\Model\User;
|
|
use Symfony\Component\EventDispatcher\Event;
|
|
|
|
class UserDisabledEvent extends Event
|
|
{
|
|
const NAME = 'user.disabled';
|
|
|
|
/**
|
|
* @var User
|
|
*/
|
|
private $user;
|
|
|
|
public function __construct(User $user)
|
|
{
|
|
$this->user = $user;
|
|
}
|
|
|
|
public function getUser()
|
|
{
|
|
return $this->user;
|
|
}
|
|
}
|