class DiffOpAdd
Same name in other branches
- 9 core/lib/Drupal/Component/Diff/Engine/DiffOpAdd.php \Drupal\Component\Diff\Engine\DiffOpAdd
- 10 core/lib/Drupal/Component/Diff/Engine/DiffOpAdd.php \Drupal\Component\Diff\Engine\DiffOpAdd
- 11.x core/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 extends \Drupal\Component\Diff\Engine\DiffOp
Expanded class hierarchy of DiffOpAdd
1 file declares its use of DiffOpAdd
- DiffEngineTest.php in core/
tests/ Drupal/ Tests/ Component/ Diff/ Engine/ DiffEngineTest.php
File
-
core/
lib/ Drupal/ Component/ Diff/ Engine/ DiffOpAdd.php, line 10
Namespace
Drupal\Component\Diff\EngineView source
class DiffOpAdd extends DiffOp {
public $type = 'add';
public function __construct($lines) {
$this->closing = $lines;
$this->orig = FALSE;
}
public function reverse() {
return new DiffOpDelete($this->closing);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
DiffOp::$closing | public | property | ||
DiffOp::$orig | public | property | ||
DiffOp::nclosing | public | function | ||
DiffOp::norig | public | function | ||
DiffOpAdd::$type | public | property | Overrides DiffOp::$type | |
DiffOpAdd::reverse | public | function | Overrides DiffOp::reverse | |
DiffOpAdd::__construct | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.