DiffOpChange.php 387 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Drupal\Component\Diff\Engine;
  3. /**
  4. * @todo document
  5. * @private
  6. * @subpackage DifferenceEngine
  7. */
  8. class DiffOpChange extends DiffOp {
  9. public $type = 'change';
  10. public function __construct($orig, $closing) {
  11. $this->orig = $orig;
  12. $this->closing = $closing;
  13. }
  14. public function reverse() {
  15. return new DiffOpChange($this->closing, $this->orig);
  16. }
  17. }