No Description

DiffElem.php 556B

12345678910111213141516171819202122232425262728
  1. <?php declare(strict_types=1);
  2. namespace PhpParser\Internal;
  3. /**
  4. * @internal
  5. */
  6. class DiffElem
  7. {
  8. const TYPE_KEEP = 0;
  9. const TYPE_REMOVE = 1;
  10. const TYPE_ADD = 2;
  11. const TYPE_REPLACE = 3;
  12. /** @var int One of the TYPE_* constants */
  13. public $type;
  14. /** @var mixed Is null for add operations */
  15. public $old;
  16. /** @var mixed Is null for remove operations */
  17. public $new;
  18. public function __construct(int $type, $old, $new) {
  19. $this->type = $type;
  20. $this->old = $old;
  21. $this->new = $new;
  22. }
  23. }