public function RuntimePublicReflectionPropertyTestProxyMock::__setInitializer in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/RuntimePublicReflectionPropertyTest.php \Doctrine\Tests\Common\Reflection\RuntimePublicReflectionPropertyTestProxyMock::__setInitializer()
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
- vendor/
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;
}