DiffOpAdd.php

Same filename in other branches
  1. 9 core/lib/Drupal/Component/Diff/Engine/DiffOpAdd.php
  2. 10 core/lib/Drupal/Component/Diff/Engine/DiffOpAdd.php
  3. 11.x core/lib/Drupal/Component/Diff/Engine/DiffOpAdd.php

Namespace

Drupal\Component\Diff\Engine

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

Title Deprecated Summary
DiffOpAdd @todo document @private @subpackage DifferenceEngine

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.