
| Current Path : /var/www/html/store/web/core/lib/Drupal/Component/Diff/Engine/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store/web/core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php |
<?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);
}
}