DiffOp.php 446 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Drupal\Component\Diff\Engine;
  3. /**
  4. * @todo document
  5. * @private
  6. * @subpackage DifferenceEngine
  7. */
  8. class DiffOp {
  9. public $type;
  10. public $orig;
  11. public $closing;
  12. public function reverse() {
  13. trigger_error('pure virtual', E_USER_ERROR);
  14. }
  15. public function norig() {
  16. return $this->orig ? sizeof($this->orig) : 0;
  17. }
  18. public function nclosing() {
  19. return $this->closing ? sizeof($this->closing) : 0;
  20. }
  21. }