class DiffOpAdd

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

@todo document @private @subpackage DifferenceEngine

Hierarchy

  • class \Drupal\Component\Diff\Engine\DiffOp
    • class \Drupal\Component\Diff\Engine\DiffOpAdd extends \Drupal\Component\Diff\Engine\DiffOp

Expanded class hierarchy of DiffOpAdd

2 files declare their use of DiffOpAdd
DiffOpOutputBuilder.php in core/lib/Drupal/Component/Diff/DiffOpOutputBuilder.php
DiffOpOutputBuilderTest.php in core/tests/Drupal/Tests/Component/Diff/DiffOpOutputBuilderTest.php

File

core/lib/Drupal/Component/Diff/Engine/DiffOpAdd.php, line 10

Namespace

Drupal\Component\Diff\Engine
View source
class DiffOpAdd extends DiffOp {
    public $type = 'add';
    public function __construct($lines) {
        $this->closing = $lines;
        $this->orig = FALSE;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
DiffOp::$closing public property
DiffOp::$orig public property
DiffOpAdd::$type public property Overrides DiffOp::$type
DiffOpAdd::__construct public function

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