public function RuntimePublicReflectionPropertyTestProxyMock::__setInitializer in Plug 7
Sets the initializer callback to be used when initializing the proxy. That initializer should accept 3 parameters: $proxy, $method and $params. Those are respectively the proxy object that is being initialized, the method name that triggered initialization and the parameters passed to that method.
Parameters
Closure|null $initializer:
Return value
void
Overrides Proxy::__setInitializer
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Reflection/ RuntimePublicReflectionPropertyTest.php, line 101
Class
- RuntimePublicReflectionPropertyTestProxyMock
- Mock that simulates proxy public property lazy loading
Namespace
Doctrine\Tests\Common\ReflectionCode
public function __setInitializer(\Closure $initializer = null) {
$this->initializer = $initializer;
}