You are here

DiffOpChange.php in Drupal 10

File

core/lib/Drupal/Component/Diff/Engine/DiffOpChange.php
View source
<?php

namespace Drupal\Component\Diff\Engine;


/**
 * @todo document
 * @private
 * @subpackage DifferenceEngine
 */
class DiffOpChange extends DiffOp {
  public $type = 'change';
  public function __construct($orig, $closing) {
    $this->orig = $orig;
    $this->closing = $closing;
  }
  public function reverse() {
    return new DiffOpChange($this->closing, $this->orig);
  }

}

Classes

Namesort descending Description
DiffOpChange @todo document @private @subpackage DifferenceEngine