DiffOpAdd.php in Service Container 7.2
Same filename and directory in other branches
Contains \Drupal\Component\Diff\Engine\DiffOpAdd.
Namespace
Drupal\Component\Diff\EngineFile
lib/Drupal/Component/Diff/Engine/DiffOpAdd.phpView source
<?php
/**
* @file
* Contains \Drupal\Component\Diff\Engine\DiffOpAdd.
*/
namespace Drupal\Component\Diff\Engine;
/**
* @todo document
* @private
* @subpackage DifferenceEngine
*/
class DiffOpAdd extends DiffOp {
var $type = 'add';
public function __construct($lines) {
$this->closing = $lines;
$this->orig = FALSE;
}
public function reverse() {
return new DiffOpDelete($this->closing);
}
}