MediaWiki REL1_41
DiffOpAdd.php
Go to the documentation of this file.
1<?php
2
28namespace Wikimedia\Diff;
29
36class DiffOpAdd extends DiffOp {
38 public $type = 'add';
39
43 public function __construct( $lines ) {
44 $this->closing = $lines;
45 $this->orig = false;
46 }
47
51 public function reverse() {
52 return new DiffOpDelete( $this->closing );
53 }
54}
55
57class_alias( DiffOpAdd::class, 'DiffOpAdd' );
The base class for all other DiffOp classes.
Definition DiffOp.php:38
if(!file_exists( $CREDITS)) $lines