You are here

class DiffOpAdd in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Component/Diff/Engine/DiffOpAdd.php \Drupal\Component\Diff\Engine\DiffOpAdd

@todo document @private @subpackage DifferenceEngine

Hierarchy

  • class \Drupal\Component\Diff\Engine\DiffOp
    • class \Drupal\Component\Diff\Engine\DiffOpAdd

Expanded class hierarchy of DiffOpAdd

File

lib/Drupal/Component/Diff/Engine/DiffOpAdd.php, line 15
Contains \Drupal\Component\Diff\Engine\DiffOpAdd.

Namespace

Drupal\Component\Diff\Engine
View source
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);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DiffOp::$closing property
DiffOp::$orig property
DiffOp::nclosing public function
DiffOp::norig public function
DiffOpAdd::$type property Overrides DiffOp::$type
DiffOpAdd::reverse public function Overrides DiffOp::reverse
DiffOpAdd::__construct public function