DiffOpCopy.php in Drupal 9
File
core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php
View source
<?php
namespace Drupal\Component\Diff\Engine;
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
Name |
Description |
DiffOpCopy |
@todo document
@private
@subpackage DifferenceEngine |