class DiffOpCopy in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php \Drupal\Component\Diff\Engine\DiffOpCopy
- 9 core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php \Drupal\Component\Diff\Engine\DiffOpCopy
@todo document @private @subpackage DifferenceEngine
Hierarchy
- class \Drupal\Component\Diff\Engine\DiffOp
- class \Drupal\Component\Diff\Engine\DiffOpCopy
Expanded class hierarchy of DiffOpCopy
2 files declare their use of DiffOpCopy
- DiffEngineTest.php in core/
tests/ Drupal/ Tests/ Component/ Diff/ Engine/ DiffEngineTest.php - DiffFormatter.php in core/
lib/ Drupal/ Component/ Diff/ DiffFormatter.php
File
- core/
lib/ Drupal/ Component/ Diff/ Engine/ DiffOpCopy.php, line 10
Namespace
Drupal\Component\Diff\EngineView source
class DiffOpCopy extends DiffOp {
public $type = 'copy';
public function __construct($orig, $closing = FALSE) {
if (!is_array($closing)) {
$closing = $orig;
}
$this->orig = $orig;
$this->closing = $closing;
}
public function reverse() {
return new DiffOpCopy($this->closing, $this->orig);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DiffOp:: |
public | property | ||
DiffOp:: |
public | property | ||
DiffOp:: |
public | function | ||
DiffOp:: |
public | function | ||
DiffOpCopy:: |
public | property |
Overrides DiffOp:: |
|
DiffOpCopy:: |
public | function |
Overrides DiffOp:: |
|
DiffOpCopy:: |
public | function |