<?php
namespace Proxies\__CG__\App\Entity\Customer;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class Customer extends \App\Entity\Customer\Customer 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__', 'oldSiteIdClient', 'generixIdCustomer', 'generixIdCardCustomer', 'codeLangAlpha3', 'company', 'intraCommunityVAT', 'originOfCustomer', 'favoriteShop', 'customerShop', 'loyaltyPoints', 'lastSynchroDate', 'isShop', 'newsletterPreference', 'wishlistProductVariants', 'orders', 'defaultAddress', 'addresses', 'user', 'id', 'email', 'emailCanonical', 'firstName', 'lastName', 'birthday', 'gender', 'group', 'phoneNumber', 'subscribedToNewsletter', 'createdAt', 'updatedAt'];
}
return ['__isInitialized__', 'oldSiteIdClient', 'generixIdCustomer', 'generixIdCardCustomer', 'codeLangAlpha3', 'company', 'intraCommunityVAT', 'originOfCustomer', 'favoriteShop', 'customerShop', 'loyaltyPoints', 'lastSynchroDate', 'isShop', 'newsletterPreference', 'wishlistProductVariants', 'orders', 'defaultAddress', 'addresses', 'user', 'id', 'email', 'emailCanonical', 'firstName', 'lastName', 'birthday', 'gender', 'group', 'phoneNumber', 'subscribedToNewsletter', 'createdAt', 'updatedAt'];
}
/**
*
*/
public function __wakeup()
{
if ( ! $this->__isInitialized__) {
$this->__initializer__ = function (Customer $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 getOldSiteIdClient(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOldSiteIdClient', []);
return parent::getOldSiteIdClient();
}
/**
* {@inheritDoc}
*/
public function setOldSiteIdClient(string $oldSiteIdClient): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setOldSiteIdClient', [$oldSiteIdClient]);
parent::setOldSiteIdClient($oldSiteIdClient);
}
/**
* {@inheritDoc}
*/
public function getGenerixIdCustomer(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getGenerixIdCustomer', []);
return parent::getGenerixIdCustomer();
}
/**
* {@inheritDoc}
*/
public function setGenerixIdCustomer(string $generixIdCustomer): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setGenerixIdCustomer', [$generixIdCustomer]);
parent::setGenerixIdCustomer($generixIdCustomer);
}
/**
* {@inheritDoc}
*/
public function getGenerixIdCardCustomer(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getGenerixIdCardCustomer', []);
return parent::getGenerixIdCardCustomer();
}
/**
* {@inheritDoc}
*/
public function setGenerixIdCardCustomer(string $generixIdCardCustomer): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setGenerixIdCardCustomer', [$generixIdCardCustomer]);
parent::setGenerixIdCardCustomer($generixIdCardCustomer);
}
/**
* {@inheritDoc}
*/
public function getCodeLangAlpha3(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCodeLangAlpha3', []);
return parent::getCodeLangAlpha3();
}
/**
* {@inheritDoc}
*/
public function setCodeLangAlpha3(string $codeLangAlpha3): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCodeLangAlpha3', [$codeLangAlpha3]);
parent::setCodeLangAlpha3($codeLangAlpha3);
}
/**
* {@inheritDoc}
*/
public function getCompany(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCompany', []);
return parent::getCompany();
}
/**
* {@inheritDoc}
*/
public function setCompany(?string $company): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCompany', [$company]);
parent::setCompany($company);
}
/**
* {@inheritDoc}
*/
public function getIntraCommunityVAT(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getIntraCommunityVAT', []);
return parent::getIntraCommunityVAT();
}
/**
* {@inheritDoc}
*/
public function setIntraCommunityVAT(string $intraCommunityVAT): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIntraCommunityVAT', [$intraCommunityVAT]);
parent::setIntraCommunityVAT($intraCommunityVAT);
}
/**
* {@inheritDoc}
*/
public function getOriginOfCustomer(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOriginOfCustomer', []);
return parent::getOriginOfCustomer();
}
/**
* {@inheritDoc}
*/
public function setOriginOfCustomer(string $originOfCustomer): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setOriginOfCustomer', [$originOfCustomer]);
parent::setOriginOfCustomer($originOfCustomer);
}
/**
* {@inheritDoc}
*/
public function getFavoriteShop(): ?\App\Entity\SiteShop
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFavoriteShop', []);
return parent::getFavoriteShop();
}
/**
* {@inheritDoc}
*/
public function setFavoriteShop(?\App\Entity\SiteShop $favoriteShop): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setFavoriteShop', [$favoriteShop]);
parent::setFavoriteShop($favoriteShop);
}
/**
* {@inheritDoc}
*/
public function getCustomerShop(): ?\App\Entity\SiteShop
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCustomerShop', []);
return parent::getCustomerShop();
}
/**
* {@inheritDoc}
*/
public function setCustomerShop(?\App\Entity\SiteShop $customerShop): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCustomerShop', [$customerShop]);
parent::setCustomerShop($customerShop);
}
/**
* {@inheritDoc}
*/
public function getLoyaltyPoints(): int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLoyaltyPoints', []);
return parent::getLoyaltyPoints();
}
/**
* {@inheritDoc}
*/
public function setLoyaltyPoints(int $loyaltyPoints): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLoyaltyPoints', [$loyaltyPoints]);
parent::setLoyaltyPoints($loyaltyPoints);
}
/**
* {@inheritDoc}
*/
public function getLastSynchroDate(): ?\DateTime
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLastSynchroDate', []);
return parent::getLastSynchroDate();
}
/**
* {@inheritDoc}
*/
public function setLastSynchroDate(\DateTime $lastSynchroDate): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLastSynchroDate', [$lastSynchroDate]);
parent::setLastSynchroDate($lastSynchroDate);
}
/**
* {@inheritDoc}
*/
public function getWishlistProductVariants()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getWishlistProductVariants', []);
return parent::getWishlistProductVariants();
}
/**
* {@inheritDoc}
*/
public function setWishlistProductVariants(): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setWishlistProductVariants', []);
parent::setWishlistProductVariants();
}
/**
* {@inheritDoc}
*/
public function getIsShop()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getIsShop', []);
return parent::getIsShop();
}
/**
* {@inheritDoc}
*/
public function setIsShop(int $isShop): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIsShop', [$isShop]);
parent::setIsShop($isShop);
}
/**
* {@inheritDoc}
*/
public function getNewsletterPreference()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getNewsletterPreference', []);
return parent::getNewsletterPreference();
}
/**
* {@inheritDoc}
*/
public function setNewsletterPreference($newsletterPreference = NULL): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setNewsletterPreference', [$newsletterPreference]);
parent::setNewsletterPreference($newsletterPreference);
}
/**
* {@inheritDoc}
*/
public function getOrders(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOrders', []);
return parent::getOrders();
}
/**
* {@inheritDoc}
*/
public function getDefaultAddress(): ?\Sylius\Component\Core\Model\AddressInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDefaultAddress', []);
return parent::getDefaultAddress();
}
/**
* {@inheritDoc}
*/
public function setDefaultAddress(?\Sylius\Component\Core\Model\AddressInterface $defaultAddress): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDefaultAddress', [$defaultAddress]);
parent::setDefaultAddress($defaultAddress);
}
/**
* {@inheritDoc}
*/
public function addAddress(\Sylius\Component\Core\Model\AddressInterface $address): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addAddress', [$address]);
parent::addAddress($address);
}
/**
* {@inheritDoc}
*/
public function removeAddress(\Sylius\Component\Core\Model\AddressInterface $address): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeAddress', [$address]);
parent::removeAddress($address);
}
/**
* {@inheritDoc}
*/
public function hasAddress(\Sylius\Component\Core\Model\AddressInterface $address): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasAddress', [$address]);
return parent::hasAddress($address);
}
/**
* {@inheritDoc}
*/
public function getAddresses(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAddresses', []);
return parent::getAddresses();
}
/**
* {@inheritDoc}
*/
public function getUser(): ?\Sylius\Component\User\Model\UserInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
return parent::getUser();
}
/**
* {@inheritDoc}
*/
public function setUser(?\Sylius\Component\User\Model\UserInterface $user): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
parent::setUser($user);
}
/**
* {@inheritDoc}
*/
public function hasUser(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasUser', []);
return parent::hasUser();
}
/**
* {@inheritDoc}
*/
public function __toString(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', []);
return parent::__toString();
}
/**
* {@inheritDoc}
*/
public function getId()
{
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): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setEmail', [$email]);
parent::setEmail($email);
}
/**
* {@inheritDoc}
*/
public function getEmailCanonical(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getEmailCanonical', []);
return parent::getEmailCanonical();
}
/**
* {@inheritDoc}
*/
public function setEmailCanonical(?string $emailCanonical): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setEmailCanonical', [$emailCanonical]);
parent::setEmailCanonical($emailCanonical);
}
/**
* {@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 $firstName): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setFirstName', [$firstName]);
parent::setFirstName($firstName);
}
/**
* {@inheritDoc}
*/
public function getLastName(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLastName', []);
return parent::getLastName();
}
/**
* {@inheritDoc}
*/
public function setLastName(?string $lastName): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLastName', [$lastName]);
parent::setLastName($lastName);
}
/**
* {@inheritDoc}
*/
public function getBirthday(): ?\DateTimeInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getBirthday', []);
return parent::getBirthday();
}
/**
* {@inheritDoc}
*/
public function setBirthday(?\DateTimeInterface $birthday): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBirthday', [$birthday]);
parent::setBirthday($birthday);
}
/**
* {@inheritDoc}
*/
public function getGender(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getGender', []);
return parent::getGender();
}
/**
* {@inheritDoc}
*/
public function setGender(?string $gender): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setGender', [$gender]);
parent::setGender($gender);
}
/**
* {@inheritDoc}
*/
public function isMale(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isMale', []);
return parent::isMale();
}
/**
* {@inheritDoc}
*/
public function isFemale(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isFemale', []);
return parent::isFemale();
}
/**
* {@inheritDoc}
*/
public function getGroup(): ?\Sylius\Component\Customer\Model\CustomerGroupInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getGroup', []);
return parent::getGroup();
}
/**
* {@inheritDoc}
*/
public function setGroup(?\Sylius\Component\Customer\Model\CustomerGroupInterface $group): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setGroup', [$group]);
parent::setGroup($group);
}
/**
* {@inheritDoc}
*/
public function getPhoneNumber(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPhoneNumber', []);
return parent::getPhoneNumber();
}
/**
* {@inheritDoc}
*/
public function setPhoneNumber(?string $phoneNumber): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPhoneNumber', [$phoneNumber]);
parent::setPhoneNumber($phoneNumber);
}
/**
* {@inheritDoc}
*/
public function isSubscribedToNewsletter(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isSubscribedToNewsletter', []);
return parent::isSubscribedToNewsletter();
}
/**
* {@inheritDoc}
*/
public function setSubscribedToNewsletter(bool $subscribedToNewsletter): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSubscribedToNewsletter', [$subscribedToNewsletter]);
parent::setSubscribedToNewsletter($subscribedToNewsletter);
}
/**
* {@inheritDoc}
*/
public function getCreatedAt(): ?\DateTimeInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedAt', []);
return parent::getCreatedAt();
}
/**
* {@inheritDoc}
*/
public function setCreatedAt(?\DateTimeInterface $createdAt): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', [$createdAt]);
parent::setCreatedAt($createdAt);
}
/**
* {@inheritDoc}
*/
public function getUpdatedAt(): ?\DateTimeInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedAt', []);
return parent::getUpdatedAt();
}
/**
* {@inheritDoc}
*/
public function setUpdatedAt(?\DateTimeInterface $updatedAt): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedAt', [$updatedAt]);
parent::setUpdatedAt($updatedAt);
}
}