class DiffElem
Same name in this branch
- 11.1.x vendor/phpstan/phpdoc-parser/src/Printer/DiffElem.php \PHPStan\PhpDocParser\Printer\DiffElem
@internal
Hierarchy
- class \PhpParser\Internal\DiffElem
Expanded class hierarchy of DiffElem
1 file declares its use of DiffElem
- PrettyPrinterAbstract.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ PrettyPrinterAbstract.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Internal/ DiffElem.php, line 8
Namespace
PhpParser\InternalView source
class DiffElem {
public const TYPE_KEEP = 0;
public const TYPE_REMOVE = 1;
public const TYPE_ADD = 2;
public const TYPE_REPLACE = 3;
/** @var int One of the TYPE_* constants */
public int $type;
/** @var mixed Is null for add operations */
public $old;
/** @var mixed Is null for remove operations */
public $new;
/**
* @param int $type One of the TYPE_* constants
* @param mixed $old Is null for add operations
* @param mixed $new Is null for remove operations
*/
public function __construct(int $type, $old, $new) {
$this->type = $type;
$this->old = $old;
$this->new = $new;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
DiffElem::$new | public | property | @var mixed Is null for remove operations |
DiffElem::$old | public | property | @var mixed Is null for add operations |
DiffElem::$type | public | property | @var int One of the TYPE_* constants |
DiffElem::TYPE_ADD | public | constant | |
DiffElem::TYPE_KEEP | public | constant | |
DiffElem::TYPE_REMOVE | public | constant | |
DiffElem::TYPE_REPLACE | public | constant | |
DiffElem::__construct | public | function |