class DiffOpCopy in Service Container 7
Same name and namespace in other branches
- 7.2 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
1 file declares its use of DiffOpCopy
- DiffFormatter.php in lib/
Drupal/ Component/ Diff/ DiffFormatter.php - Contains \Drupal\Component\Diff\DiffFormatter.
File
- lib/
Drupal/ Component/ Diff/ Engine/ DiffOpCopy.php, line 15 - Contains \Drupal\Component\Diff\Engine\DiffOpCopy.
Namespace
Drupal\Component\Diff\EngineView source
class DiffOpCopy extends DiffOp {
var $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:: |
property | |||
DiffOp:: |
property | |||
DiffOp:: |
public | function | ||
DiffOp:: |
public | function | ||
DiffOpCopy:: |
property |
Overrides DiffOp:: |
||
DiffOpCopy:: |
public | function |
Overrides DiffOp:: |
|
DiffOpCopy:: |
public | function |