# wpide/3.5.9/vendor/nikic/php-parser/lib/PhpParser/Internal/DiffElem.php

WPIDE – File Manager &amp; Code Editor, version 3.5.9. 28 lines.

- Page: https://pluginprobe.com/plugins/wpide/3.5.9/code/vendor/nikic/php-parser/lib/PhpParser/Internal/DiffElem.php
- Raw: https://pluginprobe.com/plugins/wpide/3.5.9/raw/vendor/nikic/php-parser/lib/PhpParser/Internal/DiffElem.php
- Modified: 2022-07-30T20:33:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpide/3.5.9/code/vendor/nikic/php-parser/lib/PhpParser/Internal/DiffElem.php#L10-L20`.

```php
<?php declare(strict_types=1);

namespace PhpParser\Internal;

/**
 * @internal
 */
class DiffElem
{
    const TYPE_KEEP = 0;
    const TYPE_REMOVE = 1;
    const TYPE_ADD = 2;
    const TYPE_REPLACE = 3;

    /** @var int One of the TYPE_* constants */
    public $type;
    /** @var mixed Is null for add operations */
    public $old;
    /** @var mixed Is null for remove operations */
    public $new;

    public function __construct(int $type, $old, $new) {
        $this->type = $type;
        $this->old = $old;
        $this->new = $new;
    }
}

```
