annotate core/lib/Drupal/Component/Diff/Engine/DiffOp.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 namespace Drupal\Component\Diff\Engine;
Chris@0 4
Chris@0 5 /**
Chris@0 6 * @todo document
Chris@0 7 * @private
Chris@0 8 * @subpackage DifferenceEngine
Chris@0 9 */
Chris@0 10 class DiffOp {
Chris@0 11 public $type;
Chris@0 12 public $orig;
Chris@0 13 public $closing;
Chris@0 14
Chris@0 15 public function reverse() {
Chris@0 16 trigger_error('pure virtual', E_USER_ERROR);
Chris@0 17 }
Chris@0 18
Chris@0 19 public function norig() {
Chris@0 20 return $this->orig ? sizeof($this->orig) : 0;
Chris@0 21 }
Chris@0 22
Chris@0 23 public function nclosing() {
Chris@0 24 return $this->closing ? sizeof($this->closing) : 0;
Chris@0 25 }
Chris@0 26
Chris@0 27 }