You are here

public function Proxy::__setCloner in Plug 7

Sets the callback to be used when cloning the proxy. That initializer should accept a single parameter, which is the cloned proxy instance itself.

Parameters

Closure|null $cloner:

Return value

void

1 method overrides Proxy::__setCloner()
RuntimePublicReflectionPropertyTestProxyMock::__setCloner in lib/doctrine/common/tests/Doctrine/Tests/Common/Reflection/RuntimePublicReflectionPropertyTest.php
Sets the callback to be used when cloning the proxy. That initializer should accept a single parameter, which is the cloned proxy instance itself.

File

lib/doctrine/common/lib/Doctrine/Common/Proxy/Proxy.php, line 72

Class

Proxy
Interface for proxy classes.

Namespace

Doctrine\Common\Proxy

Code

public function __setCloner(Closure $cloner = null);