<?php

namespace DoctrineORMModule\Proxy\__CG__\Admin\Entity\OAuth2;

/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class Client extends \Admin\Entity\OAuth2\Client 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\Persistence\Proxy::__setInitializer
     */
    public $__initializer__;

    /**
     * @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
     *
     * @see \Doctrine\Common\Persistence\Proxy::__setCloner
     */
    public $__cloner__;

    /**
     * @var boolean flag indicating if this object was already initialized
     *
     * @see \Doctrine\Common\Persistence\Proxy::__isInitialized
     */
    public $__isInitialized__ = false;

    /**
     * @var array properties to be lazy loaded, with keys being the property
     *            names and values being their default values
     *
     * @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
     */
    public static $lazyPropertiesDefaults = [];



    /**
     * @param \Closure $initializer
     * @param \Closure $cloner
     */
    public function __construct($initializer = null, $cloner = null)
    {

        $this->__initializer__ = $initializer;
        $this->__cloner__      = $cloner;
    }







    /**
     * 
     * @return array
     */
    public function __sleep()
    {
        if ($this->__isInitialized__) {
            return ['__isInitialized__', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'id', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'clientId', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'clientSecret', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'redirectUri', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'grantType', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'description', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'accessToken', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'refreshToken', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'authorizationCode', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'jwt', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'jti', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'publicKey', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'scope', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'user', 'postType'];
        }

        return ['__isInitialized__', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'id', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'clientId', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'clientSecret', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'redirectUri', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'grantType', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'description', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'accessToken', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'refreshToken', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'authorizationCode', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'jwt', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'jti', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'publicKey', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'scope', '' . "\0" . 'Admin\\Entity\\OAuth2\\Client' . "\0" . 'user', 'postType'];
    }

    /**
     * 
     */
    public function __wakeup()
    {
        if ( ! $this->__isInitialized__) {
            $this->__initializer__ = function (Client $proxy) {
                $proxy->__setInitializer(null);
                $proxy->__setCloner(null);

                $existingProperties = get_object_vars($proxy);

                foreach ($proxy->__getLazyProperties() 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
     * @static
     */
    public function __getLazyProperties()
    {
        return self::$lazyPropertiesDefaults;
    }

    
    /**
     * {@inheritDoc}
     */
    public function getId()
    {
        if ($this->__isInitialized__ === false) {
            return (int)  parent::getId();
        }


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

        return parent::getId();
    }

    /**
     * {@inheritDoc}
     */
    public function setId($id)
    {

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

        return parent::setId($id);
    }

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

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

        return parent::getClientId();
    }

    /**
     * {@inheritDoc}
     */
    public function setClientId($clientId)
    {

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

        return parent::setClientId($clientId);
    }

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

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

        return parent::getClientSecret();
    }

    /**
     * {@inheritDoc}
     */
    public function setClientSecret($clientSecret)
    {

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

        return parent::setClientSecret($clientSecret);
    }

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

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

        return parent::getRedirectUri();
    }

    /**
     * {@inheritDoc}
     */
    public function setRedirectUri($redirectUri)
    {

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

        return parent::setRedirectUri($redirectUri);
    }

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

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

        return parent::getGrantType();
    }

    /**
     * {@inheritDoc}
     */
    public function setGrantType($grantType)
    {

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

        return parent::setGrantType($grantType);
    }

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

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

        return parent::getDescription();
    }

    /**
     * {@inheritDoc}
     */
    public function setDescription($description)
    {

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

        return parent::setDescription($description);
    }

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

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

        return parent::getUser();
    }

    /**
     * {@inheritDoc}
     */
    public function setUser($user)
    {

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

        return parent::setUser($user);
    }

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

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

        return parent::getAccessToken();
    }

    /**
     * {@inheritDoc}
     */
    public function setAccessToken($accessToken)
    {

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

        return parent::setAccessToken($accessToken);
    }

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

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

        return parent::getRefreshToken();
    }

    /**
     * {@inheritDoc}
     */
    public function setRefreshToken($refreshToken)
    {

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

        return parent::setRefreshToken($refreshToken);
    }

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

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

        return parent::getAuthorizationCode();
    }

    /**
     * {@inheritDoc}
     */
    public function setAuthorizationCode($authorizationCode)
    {

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

        return parent::setAuthorizationCode($authorizationCode);
    }

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

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

        return parent::getJwt();
    }

    /**
     * {@inheritDoc}
     */
    public function setJwt($jwt)
    {

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

        return parent::setJwt($jwt);
    }

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

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

        return parent::getJti();
    }

    /**
     * {@inheritDoc}
     */
    public function setJti($jti)
    {

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

        return parent::setJti($jti);
    }

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

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

        return parent::getPublicKey();
    }

    /**
     * {@inheritDoc}
     */
    public function setPublicKey($publicKey)
    {

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

        return parent::setPublicKey($publicKey);
    }

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

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

        return parent::getScope();
    }

    /**
     * {@inheritDoc}
     */
    public function setScope($scope)
    {

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

        return parent::setScope($scope);
    }

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

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

        return parent::getArrayCopy();
    }

    /**
     * {@inheritDoc}
     */
    public function exchangeArray(array $array)
    {

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

        return parent::exchangeArray($array);
    }

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

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

        return parent::toArray();
    }

    /**
     * {@inheritDoc}
     */
    public function setData(array $data)
    {

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

        return parent::setData($data);
    }

    /**
     * {@inheritDoc}
     */
    public function parseDate($date = NULL, $defaultDateNow = true)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'parseDate', [$date, $defaultDateNow]);

        return parent::parseDate($date, $defaultDateNow);
    }

    /**
     * {@inheritDoc}
     */
    public function determinePostStatus($status, \DateTime $postDate = NULL)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'determinePostStatus', [$status, $postDate]);

        return parent::determinePostStatus($status, $postDate);
    }

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

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

        return parent::getPostType();
    }

    /**
     * {@inheritDoc}
     */
    public function setPostType($postType)
    {

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

        return parent::setPostType($postType);
    }

}
