<?php

namespace Proxies\__CG__\App\Entity;


/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class Notation extends \App\Entity\Notation 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\\Notation' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'activity', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'nature', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'target', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'appreciation', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'indicators', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'communes', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'postes', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'arrondissements', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'nbOfLocation', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'targetRate', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'locationRate', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'sensitivity', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'duplicated'];
        }

        return ['__isInitialized__', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'activity', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'nature', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'target', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'appreciation', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'indicators', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'communes', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'postes', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'arrondissements', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'nbOfLocation', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'targetRate', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'locationRate', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'sensitivity', '' . "\0" . 'App\\Entity\\Notation' . "\0" . 'duplicated'];
    }

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

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

        return parent::getActivity();
    }

    /**
     * {@inheritDoc}
     */
    public function setActivity(?\App\Entity\Activity $activity): \App\Entity\Notation
    {

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

        return parent::setActivity($activity);
    }

    /**
     * {@inheritDoc}
     */
    public function getNature(): ?\App\Entity\Nature
    {

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

        return parent::getNature();
    }

    /**
     * {@inheritDoc}
     */
    public function setNature(?\App\Entity\Nature $nature): \App\Entity\Notation
    {

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

        return parent::setNature($nature);
    }

    /**
     * {@inheritDoc}
     */
    public function getTarget(): ?\App\Entity\Target
    {

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

        return parent::getTarget();
    }

    /**
     * {@inheritDoc}
     */
    public function setTarget(?\App\Entity\Target $target): \App\Entity\Notation
    {

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

        return parent::setTarget($target);
    }

    /**
     * {@inheritDoc}
     */
    public function getAppreciation(): ?\App\Entity\Appreciation
    {

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

        return parent::getAppreciation();
    }

    /**
     * {@inheritDoc}
     */
    public function setAppreciation(?\App\Entity\Appreciation $appreciation): \App\Entity\Notation
    {

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

        return parent::setAppreciation($appreciation);
    }

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

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

        return parent::getIndicators();
    }

    /**
     * {@inheritDoc}
     */
    public function addIndicator(\App\Entity\Indicator $indicator): \App\Entity\Notation
    {

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

        return parent::addIndicator($indicator);
    }

    /**
     * {@inheritDoc}
     */
    public function removeIndicator(\App\Entity\Indicator $indicator): \App\Entity\Notation
    {

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

        return parent::removeIndicator($indicator);
    }

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

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

        return parent::getCommunes();
    }

    /**
     * {@inheritDoc}
     */
    public function addCommune(\App\Entity\Commune $commune): \App\Entity\Notation
    {

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

        return parent::addCommune($commune);
    }

    /**
     * {@inheritDoc}
     */
    public function removeCommune(\App\Entity\Commune $commune): \App\Entity\Notation
    {

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

        return parent::removeCommune($commune);
    }

    /**
     * {@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\Notation
    {

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

        return parent::addArrondissement($arrondissement);
    }

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

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

        return parent::removeArrondissement($arrondissement);
    }

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

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

        return parent::getPostes();
    }

    /**
     * {@inheritDoc}
     */
    public function addPoste(\App\Entity\Poste $poste): \App\Entity\Notation
    {

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

        return parent::addPoste($poste);
    }

    /**
     * {@inheritDoc}
     */
    public function removePoste(\App\Entity\Poste $poste): \App\Entity\Notation
    {

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

        return parent::removePoste($poste);
    }

    /**
     * {@inheritDoc}
     */
    public function getNbOfLocation(): ?int
    {

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

        return parent::getNbOfLocation();
    }

    /**
     * {@inheritDoc}
     */
    public function setNbOfLocation(?int $nbOfLocation): \App\Entity\Notation
    {

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

        return parent::setNbOfLocation($nbOfLocation);
    }

    /**
     * {@inheritDoc}
     */
    public function getTargetRate(): ?float
    {

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

        return parent::getTargetRate();
    }

    /**
     * {@inheritDoc}
     */
    public function setTargetRate(float $targetRate): \App\Entity\Notation
    {

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

        return parent::setTargetRate($targetRate);
    }

    /**
     * {@inheritDoc}
     */
    public function getLocationRate(): ?float
    {

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

        return parent::getLocationRate();
    }

    /**
     * {@inheritDoc}
     */
    public function setLocationRate(float $locationRate): \App\Entity\Notation
    {

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

        return parent::setLocationRate($locationRate);
    }

    /**
     * {@inheritDoc}
     */
    public function getSensitivity(): ?float
    {

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

        return parent::getSensitivity();
    }

    /**
     * {@inheritDoc}
     */
    public function setSensitivity(float $sensitivity): \App\Entity\Notation
    {

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

        return parent::setSensitivity($sensitivity);
    }

    /**
     * {@inheritDoc}
     */
    public function getDuplicated(): ?bool
    {

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

        return parent::getDuplicated();
    }

    /**
     * {@inheritDoc}
     */
    public function setDuplicated(bool $duplicated): \App\Entity\Notation
    {

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

        return parent::setDuplicated($duplicated);
    }

}
