class DiffOp

Same name in other branches
  1. 9 core/lib/Drupal/Component/Diff/Engine/DiffOp.php \Drupal\Component\Diff\Engine\DiffOp
  2. 8.9.x 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

2 files declare their use of DiffOp
DiffOpOutputBuilder.php in core/lib/Drupal/Component/Diff/DiffOpOutputBuilder.php
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;
    
    /**
     * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no
     *   replacement.
     *
     * @see https://www.drupal.org/node/3337942
     */
    public function reverse() {
        @trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3337942', E_USER_DEPRECATED);
        trigger_error('pure virtual', E_USER_ERROR);
    }
    
    /**
     * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no
     *   replacement.
     *
     * @see https://www.drupal.org/node/3337942
     */
    public function norig() {
        @trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3337942', E_USER_DEPRECATED);
        return $this->orig ? sizeof($this->orig) : 0;
    }
    
    /**
     * @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no
     *   replacement.
     *
     * @see https://www.drupal.org/node/3337942
     */
    public function nclosing() {
        @trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3337942', E_USER_DEPRECATED);
        return $this->closing ? sizeof($this->closing) : 0;
    }

}

Members

Title Sort descending Deprecated Modifiers Object type Summary Overrides
DiffOp::$closing public property
DiffOp::$orig public property
DiffOp::$type public property 4
DiffOp::nclosing Deprecated public function
DiffOp::norig Deprecated public function
DiffOp::reverse Deprecated public function 4

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