ReflectionClass::resetAsLazyProxy

Resets an object and marks it as lazy

&reftitle.description; public `void` `ReflectionClass::resetAsLazyProxy` `object` `object` `callable` `factory` `int` `options` 0

The behavior of this method is the same as `ReflectionClass::resetAsLazyGhost` except that it uses the proxy strategy.

The `object` itself becomes the proxy. Similarly to `ReflectionClass::resetAsLazyGhost`, the object is not replaced by an other one, and its identity does not change, even after initialization. The proxy and the real instance are distinct objects, with distinct identities.

&reftitle.parameters;

`object`

- A non-lazy object, or an initialized lazy object.

`factory`

- An factory callback with the same signature and purpose as in `ReflectionClass::newLazyProxy`.

&reftitle.returnvalues;

&return.void;

&reftitle.seealso;

- `ReflectionClass::newLazyProxy`
- `ReflectionClass::resetAsLazyGhost`