You are here

public function DiffOpCopy::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php \Drupal\Component\Diff\Engine\DiffOpCopy::__construct()
  2. 10 core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php \Drupal\Component\Diff\Engine\DiffOpCopy::__construct()

File

core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php, line 13

Class

DiffOpCopy
@todo document @private @subpackage DifferenceEngine

Namespace

Drupal\Component\Diff\Engine

Code

public function __construct($orig, $closing = FALSE) {
  if (!is_array($closing)) {
    $closing = $orig;
  }
  $this->orig = $orig;
  $this->closing = $closing;
}