view core/lib/Drupal/Component/Diff/Engine/DiffOpDelete.php @ 6:875880e46745

Styling
author Chris Cannam
date Fri, 08 Dec 2017 13:21:27 +0000
parents 4c8ae668cc8c
children
line wrap: on
line source
<?php

namespace Drupal\Component\Diff\Engine;

/**
 * @todo document
 * @private
 * @subpackage DifferenceEngine
 */
class DiffOpDelete extends DiffOp {
  public $type = 'delete';

  public function __construct($lines) {
    $this->orig = $lines;
    $this->closing = FALSE;
  }

  public function reverse() {
    return new DiffOpAdd($this->orig);
  }

}