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

Breadcrumb

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

function Diff::__construct

Same name in this branch
  1. 11.1.x core/lib/Drupal/Component/Diff/Diff.php \Drupal\Component\Diff\Diff::__construct()

@psalm-param non-empty-string $from @psalm-param non-empty-string $to @psalm-param list<Chunk> $chunks

File

vendor/sebastian/diff/src/Diff.php, line 41

Class

Diff
@template-implements IteratorAggregate<int, Chunk>

Namespace

SebastianBergmann\Diff

Code

public function __construct(string $from, string $to, array $chunks = []) {
    $this->from = $from;
    $this->to = $to;
    $this->chunks = $chunks;
}

API Navigation

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