Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 8 |
| DiffOpCopy | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
12 | |
0.00% |
0 / 8 |
| __construct | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 6 |
|||
| reverse | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\Component\Diff\Engine\DiffOpCopy. | |
| */ | |
| namespace Drupal\Component\Diff\Engine; | |
| /** | |
| * @todo document | |
| * @private | |
| * @subpackage DifferenceEngine | |
| */ | |
| 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); | |
| } | |
| } |