Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 5 |
DiffOpChange | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 5 |
__construct | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
reverse | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\Component\Diff\Engine\DiffOpChange. | |
*/ | |
namespace Drupal\Component\Diff\Engine; | |
/** | |
* @todo document | |
* @private | |
* @subpackage DifferenceEngine | |
*/ | |
class DiffOpChange extends DiffOp { | |
var $type = 'change'; | |
public function __construct($orig, $closing) { | |
$this->orig = $orig; | |
$this->closing = $closing; | |
} | |
public function reverse() { | |
return new DiffOpChange($this->closing, $this->orig); | |
} | |
} |