DiffOp.php

Same filename in other branches
  1. 8.9.x core/lib/Drupal/Component/Diff/Engine/DiffOp.php
  2. 10 core/lib/Drupal/Component/Diff/Engine/DiffOp.php
  3. 11.x core/lib/Drupal/Component/Diff/Engine/DiffOp.php

Namespace

Drupal\Component\Diff\Engine

File

core/lib/Drupal/Component/Diff/Engine/DiffOp.php

View source
<?php

namespace Drupal\Component\Diff\Engine;


/**
 * @todo document
 * @private
 * @subpackage DifferenceEngine
 */
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;
    }

}

Classes

Title Deprecated Summary
DiffOp @todo document @private @subpackage DifferenceEngine

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