class DiffOp

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Component/Diff/Engine/DiffOp.php \Drupal\Component\Diff\Engine\DiffOp
  2. 10 core/lib/Drupal/Component/Diff/Engine/DiffOp.php \Drupal\Component\Diff\Engine\DiffOp
  3. 9 core/lib/Drupal/Component/Diff/Engine/DiffOp.php \Drupal\Component\Diff\Engine\DiffOp
  4. 8.9.x core/lib/Drupal/Component/Diff/Engine/DiffOp.php \Drupal\Component\Diff\Engine\DiffOp

A diff operation.

@private @subpackage DifferenceEngine

Hierarchy

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

Expanded class hierarchy of DiffOp

1 file declares its use of DiffOp
DiffOpOutputBuilder.php in core/lib/Drupal/Component/Diff/DiffOpOutputBuilder.php

File

core/lib/Drupal/Component/Diff/Engine/DiffOp.php, line 11

Namespace

Drupal\Component\Diff\Engine
View source
class DiffOp {
  
  /**
   * The type of operation.
   *
   * @var string
   */
  public $type;
  
  /**
   * An array of the original lines.
   *
   * @var string[]
   */
  public $orig;
  
  /**
   * An array of the new lines.
   *
   * @var string[]
   */
  public $closing;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
DiffOp::$closing public property An array of the new lines.
DiffOp::$orig public property An array of the original lines.
DiffOp::$type public property The type of operation. 4

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