You are here

class DiffOpCopy in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php \Drupal\Component\Diff\Engine\DiffOpCopy

@todo document @private @subpackage DifferenceEngine

Hierarchy

  • class \Drupal\Component\Diff\Engine\DiffOp

Expanded class hierarchy of DiffOpCopy

1 file declares its use of DiffOpCopy
DiffFormatter.php in core/lib/Drupal/Component/Diff/DiffFormatter.php
Contains \Drupal\Component\Diff\DiffFormatter.

File

core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php, line 15
Contains \Drupal\Component\Diff\Engine\DiffOpCopy.

Namespace

Drupal\Component\Diff\Engine
View source
class DiffOpCopy extends DiffOp {
  var $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);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DiffOp::$closing property
DiffOp::$orig property
DiffOp::nclosing public function
DiffOp::norig public function
DiffOpCopy::$type property Overrides DiffOp::$type
DiffOpCopy::reverse public function Overrides DiffOp::reverse
DiffOpCopy::__construct public function