<?php
namespace Proxies\__CG__\App\Entity;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class Country extends \App\Entity\Country 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\\Country' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'valid', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'name', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'isoCode', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'phoneCode', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'phoneDigit', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'regions', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'currency'];
}
return ['__isInitialized__', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'valid', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'name', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'isoCode', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'phoneCode', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'phoneDigit', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'regions', '' . "\0" . 'App\\Entity\\Country' . "\0" . 'currency'];
}
/**
*
*/
public function __wakeup()
{
if ( ! $this->__isInitialized__) {
$this->__initializer__ = function (Country $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 prePersist()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'prePersist', []);
return parent::prePersist();
}
/**
* {@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 getName(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
return parent::getName();
}
/**
* {@inheritDoc}
*/
public function isValid(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isValid', []);
return parent::isValid();
}
/**
* {@inheritDoc}
*/
public function setValid(bool $valid): \App\Entity\Country
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setValid', [$valid]);
return parent::setValid($valid);
}
/**
* {@inheritDoc}
*/
public function setName(string $name): \App\Entity\Country
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
return parent::setName($name);
}
/**
* {@inheritDoc}
*/
public function getIsoCode(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getIsoCode', []);
return parent::getIsoCode();
}
/**
* {@inheritDoc}
*/
public function setIsoCode(string $isoCode = NULL): \App\Entity\Country
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIsoCode', [$isoCode]);
return parent::setIsoCode($isoCode);
}
/**
* {@inheritDoc}
*/
public function getPhoneCode(): int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPhoneCode', []);
return parent::getPhoneCode();
}
/**
* {@inheritDoc}
*/
public function setPhoneCode(string $phoneCode): \App\Entity\Country
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPhoneCode', [$phoneCode]);
return parent::setPhoneCode($phoneCode);
}
/**
* {@inheritDoc}
*/
public function getPhoneDigit(): int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPhoneDigit', []);
return parent::getPhoneDigit();
}
/**
* {@inheritDoc}
*/
public function setPhoneDigit(int $phoneDigit): \App\Entity\Country
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPhoneDigit', [$phoneDigit]);
return parent::setPhoneDigit($phoneDigit);
}
/**
* {@inheritDoc}
*/
public function getCurrency(): \App\Entity\Currency
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCurrency', []);
return parent::getCurrency();
}
/**
* {@inheritDoc}
*/
public function setCurrency(\App\Entity\Currency $currency): \App\Entity\Country
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCurrency', [$currency]);
return parent::setCurrency($currency);
}
/**
* {@inheritDoc}
*/
public function addRegion(\App\Entity\Region $region): \App\Entity\Country
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addRegion', [$region]);
return parent::addRegion($region);
}
/**
* {@inheritDoc}
*/
public function removeRegion(\App\Entity\Region $region): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeRegion', [$region]);
parent::removeRegion($region);
}
/**
* {@inheritDoc}
*/
public function getRegions(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRegions', []);
return parent::getRegions();
}
/**
* {@inheritDoc}
*/
public function __toString(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', []);
return parent::__toString();
}
/**
* {@inheritDoc}
*/
public function getPrefectures(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPrefectures', []);
return parent::getPrefectures();
}
/**
* {@inheritDoc}
*/
public function addPrefecture(\App\Entity\Prefecture $prefecture): \App\Entity\Country
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addPrefecture', [$prefecture]);
return parent::addPrefecture($prefecture);
}
/**
* {@inheritDoc}
*/
public function removePrefecture(\App\Entity\Prefecture $prefecture): \App\Entity\Country
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removePrefecture', [$prefecture]);
return parent::removePrefecture($prefecture);
}
}