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

Breadcrumb

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

function DeepCopy::copy

Deep copies the given object.

Parameters

mixed $object:

Return value

mixed

File

vendor/myclabs/deep-copy/src/DeepCopy/DeepCopy.php, line 94

Class

DeepCopy
@final

Namespace

DeepCopy

Code

public function copy($object) {
    $this->hashMap = [];
    return $this->recursiveCopy($object);
}
RSS feed
Powered by Drupal