Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DiffElem.php

function DiffElem::__construct

Same name in this branch
  1. 11.1.x vendor/phpstan/phpdoc-parser/src/Printer/DiffElem.php \PHPStan\PhpDocParser\Printer\DiffElem::__construct()

Parameters

int $type One of the TYPE_* constants:

mixed $old Is null for add operations:

mixed $new Is null for remove operations:

File

vendor/nikic/php-parser/lib/PhpParser/Internal/DiffElem.php, line 26

Class

DiffElem
@internal

Namespace

PhpParser\Internal

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal