<?php
namespace Proxies\__CG__\App\Entity;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class User extends \App\Entity\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\\Entity\\User' . "\0" . 'id', '' . "\0" . 'App\\Entity\\User' . "\0" . 'email', '' . "\0" . 'App\\Entity\\User' . "\0" . 'roles', '' . "\0" . 'App\\Entity\\User' . "\0" . 'password', '' . "\0" . 'App\\Entity\\User' . "\0" . 'password_verify', '' . "\0" . 'App\\Entity\\User' . "\0" . 'comments', '' . "\0" . 'App\\Entity\\User' . "\0" . 'orders', '' . "\0" . 'App\\Entity\\User' . "\0" . 'client', '' . "\0" . 'App\\Entity\\User' . "\0" . 'created_at', '' . "\0" . 'App\\Entity\\User' . "\0" . 'favoris', '' . "\0" . 'App\\Entity\\User' . "\0" . 'delivery_space', '' . "\0" . 'App\\Entity\\User' . "\0" . 'username', '' . "\0" . 'App\\Entity\\User' . "\0" . 'phone_number', '' . "\0" . 'App\\Entity\\User' . "\0" . 'phones', '' . "\0" . 'App\\Entity\\User' . "\0" . 'last_login_at', '' . "\0" . 'App\\Entity\\User' . "\0" . 'is_active', '' . "\0" . 'App\\Entity\\User' . "\0" . 'adresse', '' . "\0" . 'App\\Entity\\User' . "\0" . 'cle', '' . "\0" . 'App\\Entity\\User' . "\0" . 'status', '' . "\0" . 'App\\Entity\\User' . "\0" . 'is_verified', '' . "\0" . 'App\\Entity\\User' . "\0" . 'first_name', '' . "\0" . 'App\\Entity\\User' . "\0" . 'last_name', '' . "\0" . 'App\\Entity\\User' . "\0" . 'api_key'];
}
return ['__isInitialized__', '' . "\0" . 'App\\Entity\\User' . "\0" . 'id', '' . "\0" . 'App\\Entity\\User' . "\0" . 'email', '' . "\0" . 'App\\Entity\\User' . "\0" . 'roles', '' . "\0" . 'App\\Entity\\User' . "\0" . 'password', '' . "\0" . 'App\\Entity\\User' . "\0" . 'password_verify', '' . "\0" . 'App\\Entity\\User' . "\0" . 'comments', '' . "\0" . 'App\\Entity\\User' . "\0" . 'orders', '' . "\0" . 'App\\Entity\\User' . "\0" . 'client', '' . "\0" . 'App\\Entity\\User' . "\0" . 'created_at', '' . "\0" . 'App\\Entity\\User' . "\0" . 'favoris', '' . "\0" . 'App\\Entity\\User' . "\0" . 'delivery_space', '' . "\0" . 'App\\Entity\\User' . "\0" . 'username', '' . "\0" . 'App\\Entity\\User' . "\0" . 'phone_number', '' . "\0" . 'App\\Entity\\User' . "\0" . 'phones', '' . "\0" . 'App\\Entity\\User' . "\0" . 'last_login_at', '' . "\0" . 'App\\Entity\\User' . "\0" . 'is_active', '' . "\0" . 'App\\Entity\\User' . "\0" . 'adresse', '' . "\0" . 'App\\Entity\\User' . "\0" . 'cle', '' . "\0" . 'App\\Entity\\User' . "\0" . 'status', '' . "\0" . 'App\\Entity\\User' . "\0" . 'is_verified', '' . "\0" . 'App\\Entity\\User' . "\0" . 'first_name', '' . "\0" . 'App\\Entity\\User' . "\0" . 'last_name', '' . "\0" . 'App\\Entity\\User' . "\0" . 'api_key'];
}
/**
*
*/
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 getId(): ?int
{
if ($this->__isInitialized__ === false) {
return (int) parent::getId();
}
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
return parent::getId();
}
/**
* {@inheritDoc}
*/
public function getEmail(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getEmail', []);
return parent::getEmail();
}
/**
* {@inheritDoc}
*/
public function setEmail(string $email): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setEmail', [$email]);
return parent::setEmail($email);
}
/**
* {@inheritDoc}
*/
public function getUserIdentifier(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUserIdentifier', []);
return parent::getUserIdentifier();
}
/**
* {@inheritDoc}
*/
public function getUsername(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUsername', []);
return parent::getUsername();
}
/**
* {@inheritDoc}
*/
public function getRoles(): array
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRoles', []);
return parent::getRoles();
}
/**
* {@inheritDoc}
*/
public function setRoles(array $roles): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRoles', [$roles]);
return parent::setRoles($roles);
}
/**
* {@inheritDoc}
*/
public function getPassword(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPassword', []);
return parent::getPassword();
}
/**
* {@inheritDoc}
*/
public function setPassword(string $password): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPassword', [$password]);
return parent::setPassword($password);
}
/**
* {@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 getComments(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getComments', []);
return parent::getComments();
}
/**
* {@inheritDoc}
*/
public function addComment(\App\Entity\Comment $comment): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addComment', [$comment]);
return parent::addComment($comment);
}
/**
* {@inheritDoc}
*/
public function removeComment(\App\Entity\Comment $comment): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeComment', [$comment]);
return parent::removeComment($comment);
}
/**
* {@inheritDoc}
*/
public function getOrders(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOrders', []);
return parent::getOrders();
}
/**
* {@inheritDoc}
*/
public function addOrder(\App\Entity\Order $order): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addOrder', [$order]);
return parent::addOrder($order);
}
/**
* {@inheritDoc}
*/
public function removeOrder(\App\Entity\Order $order): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeOrder', [$order]);
return parent::removeOrder($order);
}
/**
* {@inheritDoc}
*/
public function getClient(): ?\App\Entity\Client
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getClient', []);
return parent::getClient();
}
/**
* {@inheritDoc}
*/
public function setClient(\App\Entity\Client $client): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setClient', [$client]);
return parent::setClient($client);
}
/**
* {@inheritDoc}
*/
public function getCreatedAt(): ?\DateTimeInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedAt', []);
return parent::getCreatedAt();
}
/**
* {@inheritDoc}
*/
public function setCreatedAt(\DateTimeInterface $created_at): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', [$created_at]);
return parent::setCreatedAt($created_at);
}
/**
* {@inheritDoc}
*/
public function getFavoris(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFavoris', []);
return parent::getFavoris();
}
/**
* {@inheritDoc}
*/
public function addFavori(\App\Entity\Article $favori): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addFavori', [$favori]);
return parent::addFavori($favori);
}
/**
* {@inheritDoc}
*/
public function removeFavori(\App\Entity\Article $favori): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeFavori', [$favori]);
return parent::removeFavori($favori);
}
/**
* {@inheritDoc}
*/
public function getDeliverySpace(): ?\App\Entity\DeliverySpace
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDeliverySpace', []);
return parent::getDeliverySpace();
}
/**
* {@inheritDoc}
*/
public function setDeliverySpace(?\App\Entity\DeliverySpace $delivery_space): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDeliverySpace', [$delivery_space]);
return parent::setDeliverySpace($delivery_space);
}
/**
* {@inheritDoc}
*/
public function setUsername(?string $username): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUsername', [$username]);
return parent::setUsername($username);
}
/**
* {@inheritDoc}
*/
public function getPhoneNumber(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPhoneNumber', []);
return parent::getPhoneNumber();
}
/**
* {@inheritDoc}
*/
public function setPhoneNumber(string $phone_number): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPhoneNumber', [$phone_number]);
return parent::setPhoneNumber($phone_number);
}
/**
* {@inheritDoc}
*/
public function getPasswordVerify()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPasswordVerify', []);
return parent::getPasswordVerify();
}
/**
* {@inheritDoc}
*/
public function setPasswordVerify($password_verify)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPasswordVerify', [$password_verify]);
return parent::setPasswordVerify($password_verify);
}
/**
* {@inheritDoc}
*/
public function getLastLoginAt(): ?\DateTime
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLastLoginAt', []);
return parent::getLastLoginAt();
}
/**
* {@inheritDoc}
*/
public function setLastLoginAt(?\DateTime $last_login_at): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLastLoginAt', [$last_login_at]);
return parent::setLastLoginAt($last_login_at);
}
/**
* {@inheritDoc}
*/
public function getIsActive(): ?bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getIsActive', []);
return parent::getIsActive();
}
/**
* {@inheritDoc}
*/
public function setIsActive(bool $is_active): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIsActive', [$is_active]);
return parent::setIsActive($is_active);
}
/**
* {@inheritDoc}
*/
public function getAdresse(): ?\App\Entity\Adresse
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAdresse', []);
return parent::getAdresse();
}
/**
* {@inheritDoc}
*/
public function setAdresse(?\App\Entity\Adresse $adresse): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAdresse', [$adresse]);
return parent::setAdresse($adresse);
}
/**
* {@inheritDoc}
*/
public function getPhones(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPhones', []);
return parent::getPhones();
}
/**
* {@inheritDoc}
*/
public function addPhone(\App\Entity\Phone $phone): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addPhone', [$phone]);
return parent::addPhone($phone);
}
/**
* {@inheritDoc}
*/
public function removePhone(\App\Entity\Phone $phone): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removePhone', [$phone]);
return parent::removePhone($phone);
}
/**
* {@inheritDoc}
*/
public function getCle(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCle', []);
return parent::getCle();
}
/**
* {@inheritDoc}
*/
public function setCle(string $cle): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCle', [$cle]);
return parent::setCle($cle);
}
/**
* {@inheritDoc}
*/
public function getStatus(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getStatus', []);
return parent::getStatus();
}
/**
* {@inheritDoc}
*/
public function setStatus(string $status): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setStatus', [$status]);
return parent::setStatus($status);
}
/**
* {@inheritDoc}
*/
public function getIsVerified(): ?bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getIsVerified', []);
return parent::getIsVerified();
}
/**
* {@inheritDoc}
*/
public function setIsVerified(bool $is_verified): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIsVerified', [$is_verified]);
return parent::setIsVerified($is_verified);
}
/**
* {@inheritDoc}
*/
public function getFullName(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFullName', []);
return parent::getFullName();
}
/**
* {@inheritDoc}
*/
public function getFirstName(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFirstName', []);
return parent::getFirstName();
}
/**
* {@inheritDoc}
*/
public function setFirstName(string $first_name): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setFirstName', [$first_name]);
return parent::setFirstName($first_name);
}
/**
* {@inheritDoc}
*/
public function getLastName(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLastName', []);
return parent::getLastName();
}
/**
* {@inheritDoc}
*/
public function setLastName(string $last_name): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLastName', [$last_name]);
return parent::setLastName($last_name);
}
/**
* {@inheritDoc}
*/
public function getApiKey(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getApiKey', []);
return parent::getApiKey();
}
/**
* {@inheritDoc}
*/
public function setApiKey(string $api_key): \App\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setApiKey', [$api_key]);
return parent::setApiKey($api_key);
}
}