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

@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;
  }

}

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