src/bitExpert/Disco/Proxy/LazyBean/LazyBeanFactory.php
public function createProxy(string $className, Closure $initializer): object
    {
        $proxyClassName = $this->generateProxy($className);

        return new $proxyClassName($this->beanId, $initializer);
    }
public function createProxy(string $className, Closure $initializer): object
    {
        $proxyClassName = $this->generateProxy($className);

        return new $proxyClassName($this->beanId, $initializer);
    }
public function createProxy ( string $ className , Closure $ initializer ) : object { $ proxyClassName = $ this -> generateProxy ( $ className ) ; return new $ proxyClassName ( $ this -> beanId , $ initializer ) ; }
@param string  $className
@param Closure $initializer

@return object
@param string $className @param Closure $initializer