class DiffOp

Same name in other branches
  1. 8.9.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. 11.x 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

Title Sort descending Modifiers Object type Summary 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

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