Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Component/Diff/Engine/DiffOpChange.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 DiffOpChange extends DiffOp { | |
11 public $type = 'change'; | |
12 | |
13 public function __construct($orig, $closing) { | |
14 $this->orig = $orig; | |
15 $this->closing = $closing; | |
16 } | |
17 | |
18 public function reverse() { | |
19 return new DiffOpChange($this->closing, $this->orig); | |
20 } | |
21 | |
22 } |