You are here

public function Diff::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/sebastian/diff/src/Diff.php \SebastianBergmann\Diff\Diff::__construct()
  2. 8 core/lib/Drupal/Component/Diff/Diff.php \Drupal\Component\Diff\Diff::__construct()
Same name and namespace in other branches
  1. 8.0 vendor/sebastian/diff/src/Diff.php \SebastianBergmann\Diff\Diff::__construct()

Parameters

string $from:

string $to:

Chunk[] $chunks:

File

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

Class

Diff
@package Diff @author Sebastian Bergmann <sebastian@phpunit.de> @author Kore Nordmann <mail@kore-nordmann.de> @copyright Sebastian Bergmann <sebastian@phpunit.de> @license …

Namespace

SebastianBergmann\Diff

Code

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