Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LazyProxyTrait.php

function LazyProxyTrait::__clone

File

vendor/symfony/var-exporter/LazyProxyTrait.php, line 276

Class

LazyProxyTrait

Namespace

Symfony\Component\VarExporter

Code

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;
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal