You are here

DiffOpChange.php in Service Container 7.2

Same filename and directory in other branches
  1. 7 lib/Drupal/Component/Diff/Engine/DiffOpChange.php

File

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

/**
 * @file
 * Contains \Drupal\Component\Diff\Engine\DiffOpChange.
 */
namespace Drupal\Component\Diff\Engine;


/**
 * @todo document
 * @private
 * @subpackage DifferenceEngine
 */
class DiffOpChange extends DiffOp {
  var $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