Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Component / Diff / Engine / DiffOp.php
1 <?php
2
3 namespace Drupal\Component\Diff\Engine;
4
5 /**
6  * @todo document
7  * @private
8  * @subpackage DifferenceEngine
9  */
10 class DiffOp {
11   public $type;
12   public $orig;
13   public $closing;
14
15   public function reverse() {
16     trigger_error('pure virtual', E_USER_ERROR);
17   }
18
19   public function norig() {
20     return $this->orig ? sizeof($this->orig) : 0;
21   }
22
23   public function nclosing() {
24     return $this->closing ? sizeof($this->closing) : 0;
25   }
26
27 }