Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Component / Diff / Engine / DiffOpCopy.php
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 }