Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 5 |
DiffOpAdd | |
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\DiffOpAdd. | |
*/ | |
namespace Drupal\Component\Diff\Engine; | |
/** | |
* @todo document | |
* @private | |
* @subpackage DifferenceEngine | |
*/ | |
class DiffOpAdd extends DiffOp { | |
var $type = 'add'; | |
public function __construct($lines) { | |
$this->closing = $lines; | |
$this->orig = FALSE; | |
} | |
public function reverse() { | |
return new DiffOpDelete($this->closing); | |
} | |
} |