Initial commit: CloudOps infrastructure platform

This commit is contained in:
root
2026-04-09 19:58:57 +02:00
commit 1166a52f26
7762 changed files with 839452 additions and 0 deletions

View File

@@ -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;
}
}