function LazyProxyTrait::__clone
File
-
vendor/
symfony/ var-exporter/ LazyProxyTrait.php, line 276
Class
Namespace
Symfony\Component\VarExporterCode
public function __clone() : void {
if (!isset($this->lazyObjectState)) {
if ((Registry::$parentMethods[self::class] ??= Registry::getParentMethods(self::class))['clone']) {
parent::__clone();
}
return;
}
$this->lazyObjectState = clone $this->lazyObjectState;
if (isset($this->lazyObjectState->realInstance)) {
$this->lazyObjectState->realInstance = clone $this->lazyObjectState->realInstance;
}
}