MediaWiki  master
DiffOpAdd.php
Go to the documentation of this file.
1 <?php
2 
35 class DiffOpAdd extends DiffOp {
36  public $type = 'add';
37 
38  public function __construct( $lines ) {
39  $this->closing = $lines;
40  $this->orig = false;
41  }
42 
46  public function reverse() {
47  return new DiffOpDelete( $this->closing );
48  }
49 }
DiffOp
The base class for all other DiffOp classes.
Definition: DiffOp.php:37
DiffOpDelete
Extends DiffOp.
Definition: DiffOpDelete.php:35
DiffOpAdd
Extends DiffOp.
Definition: DiffOpAdd.php:35
DiffOpAdd\$type
$type
Definition: DiffOpAdd.php:36
DiffOpAdd\reverse
reverse()
Definition: DiffOpAdd.php:46
$lines
if(!file_exists( $CREDITS)) $lines
Definition: updateCredits.php:49
DiffOpAdd\__construct
__construct( $lines)
Definition: DiffOpAdd.php:38