<?php

namespace Proxies\__CG__\App\Entity;


/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class Commune extends \App\Entity\Commune 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\\Commune' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'name', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'code', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'department', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'programms', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'arrondissements', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'pole', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'zone', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'users', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'cibles', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'coordonnee', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'normeActionCommunes', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'activityNormeCommunes', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'valeurSousIndicateurs', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'description'];
        }

        return ['__isInitialized__', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'name', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'code', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'department', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'programms', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'arrondissements', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'pole', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'zone', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'users', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'cibles', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'coordonnee', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'normeActionCommunes', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'activityNormeCommunes', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'valeurSousIndicateurs', '' . "\0" . 'App\\Entity\\Commune' . "\0" . 'description'];
    }

    /**
     * 
     */
    public function __wakeup()
    {
        if ( ! $this->__isInitialized__) {
            $this->__initializer__ = function (Commune $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(): ?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\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);

        return parent::setName($name);
    }

    /**
     * {@inheritDoc}
     */
    public function getCode(): ?string
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCode', []);

        return parent::getCode();
    }

    /**
     * {@inheritDoc}
     */
    public function setCode(string $code): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCode', [$code]);

        return parent::setCode($code);
    }

    /**
     * {@inheritDoc}
     */
    public function getDepartment(): ?\App\Entity\Department
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDepartment', []);

        return parent::getDepartment();
    }

    /**
     * {@inheritDoc}
     */
    public function setDepartment(?\App\Entity\Department $department): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDepartment', [$department]);

        return parent::setDepartment($department);
    }

    /**
     * {@inheritDoc}
     */
    public function getPole(): ?\App\Entity\Pole
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPole', []);

        return parent::getPole();
    }

    /**
     * {@inheritDoc}
     */
    public function setPole(?\App\Entity\Pole $pole): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPole', [$pole]);

        return parent::setPole($pole);
    }

    /**
     * {@inheritDoc}
     */
    public function getZone(): ?\App\Entity\Zone
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getZone', []);

        return parent::getZone();
    }

    /**
     * {@inheritDoc}
     */
    public function setZone(?\App\Entity\Zone $zone): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setZone', [$zone]);

        return parent::setZone($zone);
    }

    /**
     * {@inheritDoc}
     */
    public function getCibles(): ?array
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCibles', []);

        return parent::getCibles();
    }

    /**
     * {@inheritDoc}
     */
    public function setCibles($cibles): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCibles', [$cibles]);

        return parent::setCibles($cibles);
    }

    /**
     * {@inheritDoc}
     */
    public function getUsers(): \Doctrine\Common\Collections\Collection
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUsers', []);

        return parent::getUsers();
    }

    /**
     * {@inheritDoc}
     */
    public function addUser(\App\Entity\User $user): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'addUser', [$user]);

        return parent::addUser($user);
    }

    /**
     * {@inheritDoc}
     */
    public function removeUser(\App\Entity\User $user): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'removeUser', [$user]);

        return parent::removeUser($user);
    }

    /**
     * {@inheritDoc}
     */
    public function getCoordonnee(): ?string
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCoordonnee', []);

        return parent::getCoordonnee();
    }

    /**
     * {@inheritDoc}
     */
    public function setCoordonnee(?string $coordonnee): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCoordonnee', [$coordonnee]);

        return parent::setCoordonnee($coordonnee);
    }

    /**
     * {@inheritDoc}
     */
    public function getProgramms(): \Doctrine\Common\Collections\Collection
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getProgramms', []);

        return parent::getProgramms();
    }

    /**
     * {@inheritDoc}
     */
    public function addProgramm(\App\Entity\Programm $programm): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'addProgramm', [$programm]);

        return parent::addProgramm($programm);
    }

    /**
     * {@inheritDoc}
     */
    public function removeProgramm(\App\Entity\Programm $programm): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'removeProgramm', [$programm]);

        return parent::removeProgramm($programm);
    }

    /**
     * {@inheritDoc}
     */
    public function getArrondissements(): \Doctrine\Common\Collections\Collection
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getArrondissements', []);

        return parent::getArrondissements();
    }

    /**
     * {@inheritDoc}
     */
    public function addArrondissement(\App\Entity\Arrondissement $arrondissement): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'addArrondissement', [$arrondissement]);

        return parent::addArrondissement($arrondissement);
    }

    /**
     * {@inheritDoc}
     */
    public function getNormeActionCommunes(): \Doctrine\Common\Collections\Collection
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getNormeActionCommunes', []);

        return parent::getNormeActionCommunes();
    }

    /**
     * {@inheritDoc}
     */
    public function addNormeActionCommune(\App\Entity\NormeActionCommune $normeActionCommune): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'addNormeActionCommune', [$normeActionCommune]);

        return parent::addNormeActionCommune($normeActionCommune);
    }

    /**
     * {@inheritDoc}
     */
    public function removeNormeActionCommune(\App\Entity\NormeActionCommune $normeActionCommune): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'removeNormeActionCommune', [$normeActionCommune]);

        return parent::removeNormeActionCommune($normeActionCommune);
    }

    /**
     * {@inheritDoc}
     */
    public function getActivityNormeCommunes(): \Doctrine\Common\Collections\Collection
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getActivityNormeCommunes', []);

        return parent::getActivityNormeCommunes();
    }

    /**
     * {@inheritDoc}
     */
    public function addActivityNormeCommune(\App\Entity\ActivityNormeCommune $activityNormeCommune): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'addActivityNormeCommune', [$activityNormeCommune]);

        return parent::addActivityNormeCommune($activityNormeCommune);
    }

    /**
     * {@inheritDoc}
     */
    public function removeActivityNormeCommune(\App\Entity\ActivityNormeCommune $activityNormeCommune): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'removeActivityNormeCommune', [$activityNormeCommune]);

        return parent::removeActivityNormeCommune($activityNormeCommune);
    }

    /**
     * {@inheritDoc}
     */
    public function getValeurSousIndicateurs(): \Doctrine\Common\Collections\Collection
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getValeurSousIndicateurs', []);

        return parent::getValeurSousIndicateurs();
    }

    /**
     * {@inheritDoc}
     */
    public function addValeurSousIndicateur(\App\Entity\ValeurSousIndicateur $valeurSousIndicateur): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'addValeurSousIndicateur', [$valeurSousIndicateur]);

        return parent::addValeurSousIndicateur($valeurSousIndicateur);
    }

    /**
     * {@inheritDoc}
     */
    public function removeValeurSousIndicateur(\App\Entity\ValeurSousIndicateur $valeurSousIndicateur): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'removeValeurSousIndicateur', [$valeurSousIndicateur]);

        return parent::removeValeurSousIndicateur($valeurSousIndicateur);
    }

    /**
     * {@inheritDoc}
     */
    public function getDescription(): ?string
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDescription', []);

        return parent::getDescription();
    }

    /**
     * {@inheritDoc}
     */
    public function setDescription(?string $description): \App\Entity\Commune
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDescription', [$description]);

        return parent::setDescription($description);
    }

}
