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

Breadcrumb

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

function Differ::__construct

Same name in this branch
  1. 11.1.x vendor/phpstan/phpdoc-parser/src/Printer/Differ.php \PHPStan\PhpDocParser\Printer\Differ::__construct()
  2. 11.1.x vendor/sebastian/diff/src/Differ.php \SebastianBergmann\Diff\Differ::__construct()

Create differ over the given equality relation.

Parameters

callable(T, T): bool $isEqual Equality relation:

File

vendor/nikic/php-parser/lib/PhpParser/Internal/Differ.php, line 23

Class

Differ
Implements the Myers diff algorithm.

Namespace

PhpParser\Internal

Code

public function __construct(callable $isEqual) {
    $this->isEqual = $isEqual;
}

API Navigation

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