Initial commit: CloudOps infrastructure platform
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Mautic\UserBundle\Event;
|
||||
|
||||
use Mautic\CoreBundle\Event\CommonEvent;
|
||||
use Mautic\UserBundle\Entity\User;
|
||||
|
||||
class UserEvent extends CommonEvent
|
||||
{
|
||||
/**
|
||||
* @param bool $isNew
|
||||
*/
|
||||
public function __construct(User &$user, $isNew = false)
|
||||
{
|
||||
$this->entity = &$user;
|
||||
$this->isNew = $isNew;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the User entity.
|
||||
*
|
||||
* @return User
|
||||
*/
|
||||
public function getUser()
|
||||
{
|
||||
return $this->entity;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the User entity.
|
||||
*/
|
||||
public function setUser(User $user): void
|
||||
{
|
||||
$this->entity = $user;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user