<?php
include_once \dirname(__DIR__, 4).'/vendor/scheb/2fa-trusted-device/Security/TwoFactor/Trusted/TrustedCookieResponseListener.php';

class TrustedCookieResponseListener_c7f9b85 extends \Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedCookieResponseListener implements \ProxyManager\Proxy\VirtualProxyInterface
{
    /**
     * @var \Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedCookieResponseListener|null wrapped object, if the proxy is initialized
     */
    private $valueHolder9684d = null;

    /**
     * @var \Closure|null initializer responsible for generating the wrapped object
     */
    private $initializer489f2 = null;

    /**
     * @var bool[] map of public properties of the parent class
     */
    private static $publicPropertiesfd0c3 = [
        
    ];

    public function onKernelResponse(\Symfony\Component\HttpKernel\Event\ResponseEvent $event) : void
    {
        $this->initializer489f2 && ($this->initializer489f2->__invoke($valueHolder9684d, $this, 'onKernelResponse', array('event' => $event), $this->initializer489f2) || 1) && $this->valueHolder9684d = $valueHolder9684d;

        $this->valueHolder9684d->onKernelResponse($event);
return;
    }

    /**
     * Constructor for lazy initialization
     *
     * @param \Closure|null $initializer
     */
    public static function staticProxyConstructor($initializer)
    {
        static $reflection;

        $reflection = $reflection ?? new \ReflectionClass(__CLASS__);
        $instance   = $reflection->newInstanceWithoutConstructor();

        \Closure::bind(function (\Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedCookieResponseListener $instance) {
            unset($instance->trustedTokenStorage, $instance->trustedTokenLifetime, $instance->cookieName, $instance->cookieSecure, $instance->cookieSameSite, $instance->cookiePath, $instance->cookieDomain);
        }, $instance, 'Scheb\\TwoFactorBundle\\Security\\TwoFactor\\Trusted\\TrustedCookieResponseListener')->__invoke($instance);

        $instance->initializer489f2 = $initializer;

        return $instance;
    }

    public function __construct(\Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedDeviceTokenStorage $trustedTokenStorage, int $trustedTokenLifetime, string $cookieName, bool $cookieSecure, ?string $cookieSameSite, ?string $cookiePath, ?string $cookieDomain)
    {
        static $reflection;

        if (! $this->valueHolder9684d) {
            $reflection = $reflection ?? new \ReflectionClass('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\Trusted\\TrustedCookieResponseListener');
            $this->valueHolder9684d = $reflection->newInstanceWithoutConstructor();
        \Closure::bind(function (\Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedCookieResponseListener $instance) {
            unset($instance->trustedTokenStorage, $instance->trustedTokenLifetime, $instance->cookieName, $instance->cookieSecure, $instance->cookieSameSite, $instance->cookiePath, $instance->cookieDomain);
        }, $this, 'Scheb\\TwoFactorBundle\\Security\\TwoFactor\\Trusted\\TrustedCookieResponseListener')->__invoke($this);

        }

        $this->valueHolder9684d->__construct($trustedTokenStorage, $trustedTokenLifetime, $cookieName, $cookieSecure, $cookieSameSite, $cookiePath, $cookieDomain);
    }

    public function & __get($name)
    {
        $this->initializer489f2 && ($this->initializer489f2->__invoke($valueHolder9684d, $this, '__get', ['name' => $name], $this->initializer489f2) || 1) && $this->valueHolder9684d = $valueHolder9684d;

        if (isset(self::$publicPropertiesfd0c3[$name])) {
            return $this->valueHolder9684d->$name;
        }

        $realInstanceReflection = new \ReflectionClass('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\Trusted\\TrustedCookieResponseListener');

        if (! $realInstanceReflection->hasProperty($name)) {
            $targetObject = $this->valueHolder9684d;

            $backtrace = debug_backtrace(false, 1);
            trigger_error(
                sprintf(
                    'Undefined property: %s::$%s in %s on line %s',
                    $realInstanceReflection->getName(),
                    $name,
                    $backtrace[0]['file'],
                    $backtrace[0]['line']
                ),
                \E_USER_NOTICE
            );
            return $targetObject->$name;
        }

        $targetObject = $this->valueHolder9684d;
        $accessor = function & () use ($targetObject, $name) {
            return $targetObject->$name;
        };
        $backtrace = debug_backtrace(true, 2);
        $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
        $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
        $returnValue = & $accessor();

        return $returnValue;
    }

    public function __set($name, $value)
    {
        $this->initializer489f2 && ($this->initializer489f2->__invoke($valueHolder9684d, $this, '__set', array('name' => $name, 'value' => $value), $this->initializer489f2) || 1) && $this->valueHolder9684d = $valueHolder9684d;

        $realInstanceReflection = new \ReflectionClass('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\Trusted\\TrustedCookieResponseListener');

        if (! $realInstanceReflection->hasProperty($name)) {
            $targetObject = $this->valueHolder9684d;

            $targetObject->$name = $value;

            return $targetObject->$name;
        }

        $targetObject = $this->valueHolder9684d;
        $accessor = function & () use ($targetObject, $name, $value) {
            $targetObject->$name = $value;

            return $targetObject->$name;
        };
        $backtrace = debug_backtrace(true, 2);
        $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
        $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
        $returnValue = & $accessor();

        return $returnValue;
    }

    public function __isset($name)
    {
        $this->initializer489f2 && ($this->initializer489f2->__invoke($valueHolder9684d, $this, '__isset', array('name' => $name), $this->initializer489f2) || 1) && $this->valueHolder9684d = $valueHolder9684d;

        $realInstanceReflection = new \ReflectionClass('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\Trusted\\TrustedCookieResponseListener');

        if (! $realInstanceReflection->hasProperty($name)) {
            $targetObject = $this->valueHolder9684d;

            return isset($targetObject->$name);
        }

        $targetObject = $this->valueHolder9684d;
        $accessor = function () use ($targetObject, $name) {
            return isset($targetObject->$name);
        };
        $backtrace = debug_backtrace(true, 2);
        $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
        $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
        $returnValue = $accessor();

        return $returnValue;
    }

    public function __unset($name)
    {
        $this->initializer489f2 && ($this->initializer489f2->__invoke($valueHolder9684d, $this, '__unset', array('name' => $name), $this->initializer489f2) || 1) && $this->valueHolder9684d = $valueHolder9684d;

        $realInstanceReflection = new \ReflectionClass('Scheb\\TwoFactorBundle\\Security\\TwoFactor\\Trusted\\TrustedCookieResponseListener');

        if (! $realInstanceReflection->hasProperty($name)) {
            $targetObject = $this->valueHolder9684d;

            unset($targetObject->$name);

            return;
        }

        $targetObject = $this->valueHolder9684d;
        $accessor = function () use ($targetObject, $name) {
            unset($targetObject->$name);

            return;
        };
        $backtrace = debug_backtrace(true, 2);
        $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
        $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
        $accessor();
    }

    public function __clone()
    {
        $this->initializer489f2 && ($this->initializer489f2->__invoke($valueHolder9684d, $this, '__clone', array(), $this->initializer489f2) || 1) && $this->valueHolder9684d = $valueHolder9684d;

        $this->valueHolder9684d = clone $this->valueHolder9684d;
    }

    public function __sleep()
    {
        $this->initializer489f2 && ($this->initializer489f2->__invoke($valueHolder9684d, $this, '__sleep', array(), $this->initializer489f2) || 1) && $this->valueHolder9684d = $valueHolder9684d;

        return array('valueHolder9684d');
    }

    public function __wakeup()
    {
        \Closure::bind(function (\Scheb\TwoFactorBundle\Security\TwoFactor\Trusted\TrustedCookieResponseListener $instance) {
            unset($instance->trustedTokenStorage, $instance->trustedTokenLifetime, $instance->cookieName, $instance->cookieSecure, $instance->cookieSameSite, $instance->cookiePath, $instance->cookieDomain);
        }, $this, 'Scheb\\TwoFactorBundle\\Security\\TwoFactor\\Trusted\\TrustedCookieResponseListener')->__invoke($this);
    }

    public function setProxyInitializer(\Closure $initializer = null) : void
    {
        $this->initializer489f2 = $initializer;
    }

    public function getProxyInitializer() : ?\Closure
    {
        return $this->initializer489f2;
    }

    public function initializeProxy() : bool
    {
        return $this->initializer489f2 && ($this->initializer489f2->__invoke($valueHolder9684d, $this, 'initializeProxy', array(), $this->initializer489f2) || 1) && $this->valueHolder9684d = $valueHolder9684d;
    }

    public function isProxyInitialized() : bool
    {
        return null !== $this->valueHolder9684d;
    }

    public function getWrappedValueHolderValue() : ?object
    {
        return $this->valueHolder9684d;
    }
}
