function DiffOpCopy::__construct

Same name and namespace in other branches
  1. 8.9.x 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()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.