No, it won't. It will just copy the property in this object only...
On 3 Oct 2013 12:06, "Blanchon Vincent" <notifications@github.com> wrote:

> In
> src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/Constructor.php:
>
> > +        foreach ($originalClass->getProperties() as $originalProperty) {
> > +            if (PHP_VERSION_ID < 50400 && $originalProperty->isPrivate()) {
> > +                // @codeCoverageIgnoreStart
> > +                throw UnsupportedProxiedClassException::unsupportedLocalizedReflectionProperty($originalProperty);
> > +                // @codeCoverageIgnoreEnd
> > +            }
> > +
> > +            $propertyName = $originalProperty->getName();
> > +
> > +            if ($originalProperty->isPrivate()) {
> > +                $localizedProperties[] = "\\Closure::bind(function () use (\$localizedObject) {\n    "
> > +                    . '$this->' . $propertyName . ' = & $localizedObject->' . $propertyName . ";\n"
> > +                    . '}, $this, ' . var_export($originalProperty->getDeclaringClass()->getName(), true)
> > +                    . ')->__invoke();';
> > +            } else {
> > +                $localizedProperties[] = '$this->' . $propertyName . ' = & $localizedObject->' . $propertyName . ";";
>
> why this line ? why duplicate public/protected is interesting ? protected
> property will become public with this line ?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Ocramius/ProxyManager/pull/83/files#r6738070>
> .
>