<?php
namespace Proxies\__CG__\App\Database\Domain\Entity\User;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class User extends \App\Database\Domain\Entity\User\User implements \Doctrine\ORM\Proxy\Proxy
{
/**
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
* initialization process and an array of ordered parameters that were passed to that method.
*
* @see \Doctrine\Common\Proxy\Proxy::__setInitializer
*/
public $__initializer__;
/**
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
*
* @see \Doctrine\Common\Proxy\Proxy::__setCloner
*/
public $__cloner__;
/**
* @var boolean flag indicating if this object was already initialized
*
* @see \Doctrine\Persistence\Proxy::__isInitialized
*/
public $__isInitialized__ = false;
/**
* @var array<string, null> properties to be lazy loaded, indexed by property name
*/
public static $lazyPropertiesNames = array (
);
/**
* @var array<string, mixed> default values of properties to be lazy loaded, with keys being the property names
*
* @see \Doctrine\Common\Proxy\Proxy::__getLazyProperties
*/
public static $lazyPropertiesDefaults = array (
);
public function __construct(?\Closure $initializer = null, ?\Closure $cloner = null)
{
$this->__initializer__ = $initializer;
$this->__cloner__ = $cloner;
}
/**
*
* @return array
*/
public function __sleep()
{
if ($this->__isInitialized__) {
return ['__isInitialized__', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'password', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'username', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'roles', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'appleData', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'membership', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'avatar', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'profile', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'stripeMember', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'notifications', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'sessions', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'sections', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'userAgent', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'areNotificationsEnabled', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'notRegisteredToken', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'migratedFromNotRegistered', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'migrateCode', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'lastActivity', 'id', 'creationDate'];
}
return ['__isInitialized__', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'password', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'username', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'roles', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'appleData', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'membership', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'avatar', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'profile', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'stripeMember', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'notifications', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'sessions', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'sections', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'userAgent', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'areNotificationsEnabled', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'notRegisteredToken', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'migratedFromNotRegistered', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'migrateCode', '' . "\0" . 'App\\Database\\Domain\\Entity\\User\\User' . "\0" . 'lastActivity', 'id', 'creationDate'];
}
/**
*
*/
public function __wakeup()
{
if ( ! $this->__isInitialized__) {
$this->__initializer__ = function (User $proxy) {
$proxy->__setInitializer(null);
$proxy->__setCloner(null);
$existingProperties = get_object_vars($proxy);
foreach ($proxy::$lazyPropertiesDefaults as $property => $defaultValue) {
if ( ! array_key_exists($property, $existingProperties)) {
$proxy->$property = $defaultValue;
}
}
};
}
}
/**
*
*/
public function __clone()
{
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
}
/**
* Forces initialization of the proxy
*/
public function __load(): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __isInitialized(): bool
{
return $this->__isInitialized__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setInitialized($initialized): void
{
$this->__isInitialized__ = $initialized;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setInitializer(?\Closure $initializer = null): void
{
$this->__initializer__ = $initializer;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __getInitializer(): ?\Closure
{
return $this->__initializer__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setCloner(?\Closure $cloner = null): void
{
$this->__cloner__ = $cloner;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific cloning logic
*/
public function __getCloner(): ?\Closure
{
return $this->__cloner__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
* @deprecated no longer in use - generated code now relies on internal components rather than generated public API
* @static
*/
public function __getLazyProperties(): array
{
return self::$lazyPropertiesDefaults;
}
/**
* {@inheritDoc}
*/
public function setUserAgent(?string $userAgent): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUserAgent', [$userAgent]);
parent::setUserAgent($userAgent);
}
/**
* {@inheritDoc}
*/
public function getPassword(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPassword', []);
return parent::getPassword();
}
/**
* {@inheritDoc}
*/
public function setPassword(string $password): \App\Database\Domain\Entity\User\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPassword', [$password]);
return parent::setPassword($password);
}
/**
* {@inheritDoc}
*/
public function getUsername(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUsername', []);
return parent::getUsername();
}
/**
* {@inheritDoc}
*/
public function setUsername(string $username): \App\Database\Domain\Entity\User\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUsername', [$username]);
return parent::setUsername($username);
}
/**
* {@inheritDoc}
*/
public function getUserIdentifier(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUserIdentifier', []);
return parent::getUserIdentifier();
}
/**
* {@inheritDoc}
*/
public function getRoles(): array
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRoles', []);
return parent::getRoles();
}
/**
* {@inheritDoc}
*/
public function setRoles(array $roles): \App\Database\Domain\Entity\User\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRoles', [$roles]);
return parent::setRoles($roles);
}
/**
* {@inheritDoc}
*/
public function getAppleData(): ?\App\Database\Domain\Entity\User\UserAppleData
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAppleData', []);
return parent::getAppleData();
}
/**
* {@inheritDoc}
*/
public function setAppleData(\App\Database\Domain\Entity\User\UserAppleData $appleData): \App\Database\Domain\Entity\User\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAppleData', [$appleData]);
return parent::setAppleData($appleData);
}
/**
* {@inheritDoc}
*/
public function getMembership(): \App\Database\Domain\Entity\User\UserMembership
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getMembership', []);
return parent::getMembership();
}
/**
* {@inheritDoc}
*/
public function setMembership(\App\Database\Domain\Entity\User\UserMembership $membership): \App\Database\Domain\Entity\User\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setMembership', [$membership]);
return parent::setMembership($membership);
}
/**
* {@inheritDoc}
*/
public function getAvatar(): \App\Database\Domain\Entity\User\UserAvatar
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAvatar', []);
return parent::getAvatar();
}
/**
* {@inheritDoc}
*/
public function setAvatar(\App\Database\Domain\Entity\User\UserAvatar $avatar): \App\Database\Domain\Entity\User\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAvatar', [$avatar]);
return parent::setAvatar($avatar);
}
/**
* {@inheritDoc}
*/
public function getProfile(): \App\Database\Domain\Entity\User\UserProfile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getProfile', []);
return parent::getProfile();
}
/**
* {@inheritDoc}
*/
public function setProfile(\App\Database\Domain\Entity\User\UserProfile $profile): \App\Database\Domain\Entity\User\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setProfile', [$profile]);
return parent::setProfile($profile);
}
/**
* {@inheritDoc}
*/
public function getStripeMember(): ?\App\Database\Domain\Entity\User\UserStripeMember
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getStripeMember', []);
return parent::getStripeMember();
}
/**
* {@inheritDoc}
*/
public function setStripeMember(\App\Database\Domain\Entity\User\UserStripeMember $stripeMember): \App\Database\Domain\Entity\User\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setStripeMember', [$stripeMember]);
return parent::setStripeMember($stripeMember);
}
/**
* {@inheritDoc}
*/
public function getSessions()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSessions', []);
return parent::getSessions();
}
/**
* {@inheritDoc}
*/
public function addSession(\App\Database\Domain\Entity\Sessions\ToastSession $session)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addSession', [$session]);
return parent::addSession($session);
}
/**
* {@inheritDoc}
*/
public function clearSessions(): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'clearSessions', []);
parent::clearSessions();
}
/**
* {@inheritDoc}
*/
public function areNotificationsEnabled(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'areNotificationsEnabled', []);
return parent::areNotificationsEnabled();
}
/**
* {@inheritDoc}
*/
public function setNotificationsEnabled(bool $areEnabled)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setNotificationsEnabled', [$areEnabled]);
return parent::setNotificationsEnabled($areEnabled);
}
/**
* {@inheritDoc}
*/
public function getSalt(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSalt', []);
return parent::getSalt();
}
/**
* {@inheritDoc}
*/
public function eraseCredentials()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'eraseCredentials', []);
return parent::eraseCredentials();
}
/**
* {@inheritDoc}
*/
public function getNotRegisteredToken(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getNotRegisteredToken', []);
return parent::getNotRegisteredToken();
}
/**
* {@inheritDoc}
*/
public function setNotRegisteredToken(?string $notRegisteredToken): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setNotRegisteredToken', [$notRegisteredToken]);
parent::setNotRegisteredToken($notRegisteredToken);
}
/**
* {@inheritDoc}
*/
public function getMigratedFromNotRegistered(): int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getMigratedFromNotRegistered', []);
return parent::getMigratedFromNotRegistered();
}
/**
* {@inheritDoc}
*/
public function setMigratedFromNotRegistered(int $migratedFromNotRegistered): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setMigratedFromNotRegistered', [$migratedFromNotRegistered]);
parent::setMigratedFromNotRegistered($migratedFromNotRegistered);
}
/**
* {@inheritDoc}
*/
public function getLastActivity(): ?\DateTimeInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLastActivity', []);
return parent::getLastActivity();
}
/**
* {@inheritDoc}
*/
public function setLastActivity(?\DateTimeInterface $lastActivity): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLastActivity', [$lastActivity]);
parent::setLastActivity($lastActivity);
}
/**
* {@inheritDoc}
*/
public function isFullUser(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isFullUser', []);
return parent::isFullUser();
}
/**
* {@inheritDoc}
*/
public function isPartialUser(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isPartialUser', []);
return parent::isPartialUser();
}
/**
* {@inheritDoc}
*/
public function getMigrateCode(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getMigrateCode', []);
return parent::getMigrateCode();
}
/**
* {@inheritDoc}
*/
public function setMigrateCode(?string $migrateCode): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setMigrateCode', [$migrateCode]);
parent::setMigrateCode($migrateCode);
}
/**
* {@inheritDoc}
*/
public function getSections(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSections', []);
return parent::getSections();
}
/**
* {@inheritDoc}
*/
public function setSections(\Doctrine\Common\Collections\Collection $sections): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSections', [$sections]);
parent::setSections($sections);
}
/**
* {@inheritDoc}
*/
public function getId()
{
if ($this->__isInitialized__ === false) {
return parent::getId();
}
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
return parent::getId();
}
/**
* {@inheritDoc}
*/
public function setId($id): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setId', [$id]);
parent::setId($id);
}
/**
* {@inheritDoc}
*/
public function getCreationDate(): ?\DateTimeInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreationDate', []);
return parent::getCreationDate();
}
/**
* {@inheritDoc}
*/
public function setCreationDate(?\DateTimeInterface $creationDate): \App\Database\Domain\Entity\User\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreationDate', [$creationDate]);
return parent::setCreationDate($creationDate);
}
}