comparison core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\Component\Diff\Engine;
4
5 /**
6 * @todo document
7 * @private
8 * @subpackage DifferenceEngine
9 */
10 class DiffOpCopy extends DiffOp {
11 public $type = 'copy';
12
13 public function __construct($orig, $closing = FALSE) {
14 if (!is_array($closing)) {
15 $closing = $orig;
16 }
17 $this->orig = $orig;
18 $this->closing = $closing;
19 }
20
21 public function reverse() {
22 return new DiffOpCopy($this->closing, $this->orig);
23 }
24
25 }