DiffOpCopy.php

Same filename and directory in other branches
  1. 8.9.x core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php
  2. 10 core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php
  3. 11.x core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php

Namespace

Drupal\Component\Diff\Engine

File

core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php

View source
<?php

namespace Drupal\Component\Diff\Engine;


/**
 * @todo document
 * @private
 * @subpackage DifferenceEngine
 */
class DiffOpCopy extends DiffOp {
  public $type = 'copy';
  public function __construct($orig, $closing = FALSE) {
    if (!is_array($closing)) {
      $closing = $orig;
    }
    $this->orig = $orig;
    $this->closing = $closing;
  }
  public function reverse() {
    return new DiffOpCopy($this->closing, $this->orig);
  }

}

Classes

Title Deprecated Summary
DiffOpCopy @todo document @private @subpackage DifferenceEngine

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