You are here

DiffOpAdd.php in Drupal 9

Same filename and directory in other branches
  1. 8 core/lib/Drupal/Component/Diff/Engine/DiffOpAdd.php

File

core/lib/Drupal/Component/Diff/Engine/DiffOpAdd.php
View source
<?php

namespace Drupal\Component\Diff\Engine;


/**
 * @todo document
 * @private
 * @subpackage DifferenceEngine
 */
class DiffOpAdd extends DiffOp {
  public $type = 'add';
  public function __construct($lines) {
    $this->closing = $lines;
    $this->orig = FALSE;
  }
  public function reverse() {
    return new DiffOpDelete($this->closing);
  }

}

Classes

Namesort descending Description
DiffOpAdd @todo document @private @subpackage DifferenceEngine