<?php
namespace Proxies\__CG__\App\Entity;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class Categorie extends \App\Entity\Categorie 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\\Categorie' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'name', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'descriptions', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'image', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'nameFr', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'descriptionsFr', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'nameEs', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'descriptionsEs', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'sousCategorie', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'CategorieChild', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'produits'];
}
return ['__isInitialized__', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'name', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'descriptions', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'image', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'nameFr', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'descriptionsFr', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'nameEs', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'descriptionsEs', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'sousCategorie', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'CategorieChild', '' . "\0" . 'App\\Entity\\Categorie' . "\0" . 'produits'];
}
/**
*
*/
public function __wakeup()
{
if ( ! $this->__isInitialized__) {
$this->__initializer__ = function (Categorie $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 getName(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
return parent::getName();
}
/**
* {@inheritDoc}
*/
public function setName(string $name): \App\Entity\Categorie
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
return parent::setName($name);
}
/**
* {@inheritDoc}
*/
public function getDescriptions(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDescriptions', []);
return parent::getDescriptions();
}
/**
* {@inheritDoc}
*/
public function setDescriptions(string $descriptions): \App\Entity\Categorie
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDescriptions', [$descriptions]);
return parent::setDescriptions($descriptions);
}
/**
* {@inheritDoc}
*/
public function getImage(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getImage', []);
return parent::getImage();
}
/**
* {@inheritDoc}
*/
public function setImage(?string $image): \App\Entity\Categorie
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setImage', [$image]);
return parent::setImage($image);
}
/**
* {@inheritDoc}
*/
public function getNameFr(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getNameFr', []);
return parent::getNameFr();
}
/**
* {@inheritDoc}
*/
public function setNameFr(string $nameFr): \App\Entity\Categorie
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setNameFr', [$nameFr]);
return parent::setNameFr($nameFr);
}
/**
* {@inheritDoc}
*/
public function getDescriptionsFr(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDescriptionsFr', []);
return parent::getDescriptionsFr();
}
/**
* {@inheritDoc}
*/
public function setDescriptionsFr(string $descriptionsFr): \App\Entity\Categorie
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDescriptionsFr', [$descriptionsFr]);
return parent::setDescriptionsFr($descriptionsFr);
}
/**
* {@inheritDoc}
*/
public function getNameEs(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getNameEs', []);
return parent::getNameEs();
}
/**
* {@inheritDoc}
*/
public function setNameEs(string $nameEs): \App\Entity\Categorie
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setNameEs', [$nameEs]);
return parent::setNameEs($nameEs);
}
/**
* {@inheritDoc}
*/
public function getDescriptionsEs(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDescriptionsEs', []);
return parent::getDescriptionsEs();
}
/**
* {@inheritDoc}
*/
public function setDescriptionsEs(string $descriptionsEs): \App\Entity\Categorie
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDescriptionsEs', [$descriptionsEs]);
return parent::setDescriptionsEs($descriptionsEs);
}
/**
* {@inheritDoc}
*/
public function getNameLangue($langueCurrent)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getNameLangue', [$langueCurrent]);
return parent::getNameLangue($langueCurrent);
}
/**
* {@inheritDoc}
*/
public function getDescriptionsLangue($langueCurrent)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDescriptionsLangue', [$langueCurrent]);
return parent::getDescriptionsLangue($langueCurrent);
}
/**
* {@inheritDoc}
*/
public function getSousCategorie(): ?\App\Entity\Categorie
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSousCategorie', []);
return parent::getSousCategorie();
}
/**
* {@inheritDoc}
*/
public function setSousCategorie(?\App\Entity\Categorie $sousCategorie): \App\Entity\Categorie
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSousCategorie', [$sousCategorie]);
return parent::setSousCategorie($sousCategorie);
}
/**
* {@inheritDoc}
*/
public function getCategorieChild(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCategorieChild', []);
return parent::getCategorieChild();
}
/**
* {@inheritDoc}
*/
public function addCategorieChild(\App\Entity\Categorie $categorieChild): \App\Entity\Categorie
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addCategorieChild', [$categorieChild]);
return parent::addCategorieChild($categorieChild);
}
/**
* {@inheritDoc}
*/
public function removeCategorieChild(\App\Entity\Categorie $categorieChild): \App\Entity\Categorie
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeCategorieChild', [$categorieChild]);
return parent::removeCategorieChild($categorieChild);
}
/**
* {@inheritDoc}
*/
public function getProduits(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getProduits', []);
return parent::getProduits();
}
/**
* {@inheritDoc}
*/
public function addProduit(\App\Entity\Produit\Produit $produit): \App\Entity\Categorie
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addProduit', [$produit]);
return parent::addProduit($produit);
}
/**
* {@inheritDoc}
*/
public function removeProduit(\App\Entity\Produit\Produit $produit): \App\Entity\Categorie
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeProduit', [$produit]);
return parent::removeProduit($produit);
}
}