<?php
namespace Proxies\__CG__\App\Entity;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class Usuario extends \App\Entity\Usuario 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__', 'id', 'IDperseo', 'avatar', 'deletedAt', 'updatedAt', 'createdAt', 'user', 'unidadNegocioResponsable', 'valoraciones', '' . "\0" . 'App\\Entity\\Usuario' . "\0" . 'actividades', 'operaciones', 'unidadNegocio', 'unidadesNegocioComercial'];
}
return ['__isInitialized__', 'id', 'IDperseo', 'avatar', 'deletedAt', 'updatedAt', 'createdAt', 'user', 'unidadNegocioResponsable', 'valoraciones', '' . "\0" . 'App\\Entity\\Usuario' . "\0" . 'actividades', 'operaciones', 'unidadNegocio', 'unidadesNegocioComercial'];
}
/**
*
*/
public function __wakeup()
{
if ( ! $this->__isInitialized__) {
$this->__initializer__ = function (Usuario $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 __toString(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', []);
return parent::__toString();
}
/**
* {@inheritDoc}
*/
public function getId(): ?string
{
if ($this->__isInitialized__ === false) {
return parent::getId();
}
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
return parent::getId();
}
/**
* {@inheritDoc}
*/
public function getIDperseo(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getIDperseo', []);
return parent::getIDperseo();
}
/**
* {@inheritDoc}
*/
public function setIDperseo(string $IDperseo): \App\Entity\Usuario
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIDperseo', [$IDperseo]);
return parent::setIDperseo($IDperseo);
}
/**
* {@inheritDoc}
*/
public function getAvatar(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAvatar', []);
return parent::getAvatar();
}
/**
* {@inheritDoc}
*/
public function setAvatar(?string $avatar): \App\Entity\Usuario
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAvatar', [$avatar]);
return parent::setAvatar($avatar);
}
/**
* {@inheritDoc}
*/
public function getDeletedAt(): ?\DateTimeInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDeletedAt', []);
return parent::getDeletedAt();
}
/**
* {@inheritDoc}
*/
public function setDeletedAt(?\DateTimeInterface $deletedAt): \App\Entity\Usuario
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDeletedAt', [$deletedAt]);
return parent::setDeletedAt($deletedAt);
}
/**
* {@inheritDoc}
*/
public function getUpdatedAt(): ?\DateTimeInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedAt', []);
return parent::getUpdatedAt();
}
/**
* {@inheritDoc}
*/
public function setUpdatedAt(\DateTimeInterface $updatedAt): \App\Entity\Usuario
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedAt', [$updatedAt]);
return parent::setUpdatedAt($updatedAt);
}
/**
* {@inheritDoc}
*/
public function getCreatedAt(): ?\DateTimeInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedAt', []);
return parent::getCreatedAt();
}
/**
* {@inheritDoc}
*/
public function setCreatedAt(\DateTimeInterface $createdAt): \App\Entity\Usuario
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', [$createdAt]);
return parent::setCreatedAt($createdAt);
}
/**
* {@inheritDoc}
*/
public function getUser(): ?\App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
return parent::getUser();
}
/**
* {@inheritDoc}
*/
public function setUser(?\App\Entity\User $user): \App\Entity\Usuario
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
return parent::setUser($user);
}
/**
* {@inheritDoc}
*/
public function getUnidadNegocioResponsable(): ?\App\Entity\UnidadNegocio
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUnidadNegocioResponsable', []);
return parent::getUnidadNegocioResponsable();
}
/**
* {@inheritDoc}
*/
public function setUnidadNegocioResponsable(?\App\Entity\UnidadNegocio $unidadNegocioResponsable): \App\Entity\Usuario
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUnidadNegocioResponsable', [$unidadNegocioResponsable]);
return parent::setUnidadNegocioResponsable($unidadNegocioResponsable);
}
/**
* {@inheritDoc}
*/
public function getValoraciones(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getValoraciones', []);
return parent::getValoraciones();
}
/**
* {@inheritDoc}
*/
public function addValoracione(\App\Entity\Valoracion $valoracione): \App\Entity\Usuario
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addValoracione', [$valoracione]);
return parent::addValoracione($valoracione);
}
/**
* {@inheritDoc}
*/
public function removeValoracione(\App\Entity\Valoracion $valoracione): \App\Entity\Usuario
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeValoracione', [$valoracione]);
return parent::removeValoracione($valoracione);
}
/**
* {@inheritDoc}
*/
public function getUnidadNegocio(): ?\App\Entity\UnidadNegocio
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUnidadNegocio', []);
return parent::getUnidadNegocio();
}
/**
* {@inheritDoc}
*/
public function setUnidadNegocio(?\App\Entity\UnidadNegocio $unidadNegocio): \App\Entity\Usuario
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUnidadNegocio', [$unidadNegocio]);
return parent::setUnidadNegocio($unidadNegocio);
}
/**
* {@inheritDoc}
*/
public function getUnidadesNegocioComercial(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUnidadesNegocioComercial', []);
return parent::getUnidadesNegocioComercial();
}
/**
* {@inheritDoc}
*/
public function addUnidadesNegocioComercial(\App\Entity\UnidadNegocio $unidadesNegocioComercial): \App\Entity\Usuario
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addUnidadesNegocioComercial', [$unidadesNegocioComercial]);
return parent::addUnidadesNegocioComercial($unidadesNegocioComercial);
}
/**
* {@inheritDoc}
*/
public function removeUnidadesNegocioComercial(\App\Entity\UnidadNegocio $unidadesNegocioComercial): \App\Entity\Usuario
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeUnidadesNegocioComercial', [$unidadesNegocioComercial]);
return parent::removeUnidadesNegocioComercial($unidadesNegocioComercial);
}
/**
* {@inheritDoc}
*/
public function getOperaciones(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOperaciones', []);
return parent::getOperaciones();
}
/**
* {@inheritDoc}
*/
public function addOperacione(\App\Entity\Operacion $operacione): \App\Entity\Usuario
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addOperacione', [$operacione]);
return parent::addOperacione($operacione);
}
/**
* {@inheritDoc}
*/
public function removeOperacione(\App\Entity\Operacion $operacione): \App\Entity\Usuario
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeOperacione', [$operacione]);
return parent::removeOperacione($operacione);
}
/**
* {@inheritDoc}
*/
public function getActividades(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getActividades', []);
return parent::getActividades();
}
/**
* {@inheritDoc}
*/
public function addActividade(\App\Entity\ActividadAbstract $actividade): static
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addActividade', [$actividade]);
return parent::addActividade($actividade);
}
/**
* {@inheritDoc}
*/
public function removeActividade(\App\Entity\ActividadAbstract $actividade): static
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeActividade', [$actividade]);
return parent::removeActividade($actividade);
}
}