You are here

class DiffOp in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Diff/Engine/DiffOp.php \Drupal\Component\Diff\Engine\DiffOp

@todo document @private @subpackage DifferenceEngine

Hierarchy

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

Expanded class hierarchy of DiffOp

1 file declares its use of DiffOp
DiffOpTest.php in core/tests/Drupal/Tests/Component/Diff/Engine/DiffOpTest.php

File

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

Namespace

Drupal\Component\Diff\Engine
View source
class DiffOp {
  public $type;
  public $orig;
  public $closing;
  public function reverse() {
    trigger_error('pure virtual', E_USER_ERROR);
  }
  public function norig() {
    return $this->orig ? sizeof($this->orig) : 0;
  }
  public function nclosing() {
    return $this->closing ? sizeof($this->closing) : 0;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DiffOp::$closing public property
DiffOp::$orig public property
DiffOp::$type public property 4
DiffOp::nclosing public function
DiffOp::norig public function
DiffOp::reverse public function 4