public function DiffOpAdd::reverse

public DiffOpAdd::reverse()

Overrides DiffOp::reverse

File

core/lib/Drupal/Component/Diff/Engine/DiffOpAdd.php, line 18

Class

DiffOpAdd
@todo document @private @subpackage DifferenceEngine

Namespace

Drupal\Component\Diff\Engine

Code

public function reverse() {
  return new DiffOpDelete($this->closing);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Diff!Engine!DiffOpAdd.php/function/DiffOpAdd::reverse/8.1.x