<?php

namespace Proxies\__CG__\App\Entity;

/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class Domain extends \App\Entity\Domain 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\\Domain' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'protocol', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'url', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'checkedAt', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'campaigns', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'prospects', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'stats', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'urlType', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'ip', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'topicTrustFlows', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'createdAt', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'updatedAt'];
        }

        return ['__isInitialized__', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'protocol', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'url', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'checkedAt', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'campaigns', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'prospects', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'stats', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'urlType', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'ip', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'topicTrustFlows', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'createdAt', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'updatedAt'];
    }

    /**
     * 
     */
    public function __wakeup()
    {
        if ( ! $this->__isInitialized__) {
            $this->__initializer__ = function (Domain $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()
    {
        $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
    }

    /**
     * {@inheritDoc}
     * @internal generated method: use only when explicitly handling proxy specific loading logic
     */
    public function __isInitialized()
    {
        return $this->__isInitialized__;
    }

    /**
     * {@inheritDoc}
     * @internal generated method: use only when explicitly handling proxy specific loading logic
     */
    public function __setInitialized($initialized)
    {
        $this->__isInitialized__ = $initialized;
    }

    /**
     * {@inheritDoc}
     * @internal generated method: use only when explicitly handling proxy specific loading logic
     */
    public function __setInitializer(\Closure $initializer = null)
    {
        $this->__initializer__ = $initializer;
    }

    /**
     * {@inheritDoc}
     * @internal generated method: use only when explicitly handling proxy specific loading logic
     */
    public function __getInitializer()
    {
        return $this->__initializer__;
    }

    /**
     * {@inheritDoc}
     * @internal generated method: use only when explicitly handling proxy specific loading logic
     */
    public function __setCloner(\Closure $cloner = null)
    {
        $this->__cloner__ = $cloner;
    }

    /**
     * {@inheritDoc}
     * @internal generated method: use only when explicitly handling proxy specific cloning logic
     */
    public function __getCloner()
    {
        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()
    {
        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 getCheckedAt(): ?\DateTimeInterface
    {

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

        return parent::getCheckedAt();
    }

    /**
     * {@inheritDoc}
     */
    public function setCheckedAt(?\DateTimeInterface $checkedAt): \App\Entity\Domain
    {

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

        return parent::setCheckedAt($checkedAt);
    }

    /**
     * {@inheritDoc}
     */
    public function addCampaign(\App\Entity\Campaign $campaign): \App\Entity\Domain
    {

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

        return parent::addCampaign($campaign);
    }

    /**
     * {@inheritDoc}
     */
    public function removeCampaign(\App\Entity\Campaign $campaign): \App\Entity\Domain
    {

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

        return parent::removeCampaign($campaign);
    }

    /**
     * {@inheritDoc}
     */
    public function addProspect(\App\Entity\Prospect $prospect): \App\Entity\Domain
    {

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

        return parent::addProspect($prospect);
    }

    /**
     * {@inheritDoc}
     */
    public function removeProspect(\App\Entity\Prospect $prospect): \App\Entity\Domain
    {

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

        return parent::removeProspect($prospect);
    }

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

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

        return parent::getStats();
    }

    /**
     * {@inheritDoc}
     */
    public function addStat(?\App\Entity\Domain\Stat $stat): \App\Entity\Domain
    {

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

        return parent::addStat($stat);
    }

    /**
     * {@inheritDoc}
     */
    public function removeStat(\App\Entity\Domain\Stat $stat): \App\Entity\Domain
    {

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

        return parent::removeStat($stat);
    }

    /**
     * {@inheritDoc}
     */
    public function getUrlType()
    {

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

        return parent::getUrlType();
    }

    /**
     * {@inheritDoc}
     */
    public function setUrlType(string $urlType): \App\Entity\Domain
    {

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

        return parent::setUrlType($urlType);
    }

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

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

        return parent::getIp();
    }

    /**
     * {@inheritDoc}
     */
    public function setIp(?string $ip): \App\Entity\Domain
    {

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

        return parent::setIp($ip);
    }

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

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

        return parent::getFullUrl();
    }

    /**
     * {@inheritDoc}
     */
    public function getProtocol()
    {

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

        return parent::getProtocol();
    }

    /**
     * {@inheritDoc}
     */
    public function setProtocol(string $protocol): \App\Entity\Domain
    {

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

        return parent::setProtocol($protocol);
    }

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

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

        return parent::getUrl();
    }

    /**
     * {@inheritDoc}
     */
    public function setUrl(string $url): \App\Entity\Domain
    {

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

        return parent::setUrl($url);
    }

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

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

        return parent::getDataType();
    }

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

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

        return parent::getTopicTrustFlows();
    }

    /**
     * {@inheritDoc}
     */
    public function addTopicTrustFlow(\App\Entity\Domain\TopicTrustFlow $topicTrustFlow): \App\Entity\Domain
    {

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

        return parent::addTopicTrustFlow($topicTrustFlow);
    }

    /**
     * {@inheritDoc}
     */
    public function removeTopicTrustFlow(\App\Entity\Domain\TopicTrustFlow $topicTrustFlow): \App\Entity\Domain
    {

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

        return parent::removeTopicTrustFlow($topicTrustFlow);
    }

    /**
     * {@inheritDoc}
     */
    public function resetTopicTrustFlows(): \App\Entity\Domain
    {

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

        return parent::resetTopicTrustFlows();
    }

    /**
     * {@inheritDoc}
     */
    public function getCreatedAt(): ?\DateTime
    {

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

        return parent::getCreatedAt();
    }

    /**
     * {@inheritDoc}
     */
    public function getUpdatedAt(): ?\DateTime
    {

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

        return parent::getUpdatedAt();
    }

}
