class Diff in Zircon Profile 8
Same name in this branch
- 8 vendor/sebastian/diff/src/Diff.php \SebastianBergmann\Diff\Diff
- 8 core/lib/Drupal/Component/Diff/Diff.php \Drupal\Component\Diff\Diff
Same name and namespace in other branches
- 8.0 vendor/sebastian/diff/src/Diff.php \SebastianBergmann\Diff\Diff
@package Diff @author Sebastian Bergmann <sebastian@phpunit.de> @author Kore Nordmann <mail@kore-nordmann.de> @copyright Sebastian Bergmann <sebastian@phpunit.de> @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License @link http://www.github.com/sebastianbergmann/diff
Hierarchy
- class \SebastianBergmann\Diff\Diff
Expanded class hierarchy of Diff
File
- vendor/
sebastian/ diff/ src/ Diff.php, line 21
Namespace
SebastianBergmann\DiffView source
class Diff {
/**
* @var string
*/
private $from;
/**
* @var string
*/
private $to;
/**
* @var Chunk[]
*/
private $chunks;
/**
* @param string $from
* @param string $to
* @param Chunk[] $chunks
*/
public function __construct($from, $to, array $chunks = array()) {
$this->from = $from;
$this->to = $to;
$this->chunks = $chunks;
}
/**
* @return string
*/
public function getFrom() {
return $this->from;
}
/**
* @return string
*/
public function getTo() {
return $this->to;
}
/**
* @return Chunk[]
*/
public function getChunks() {
return $this->chunks;
}
/**
* @param Chunk[] $chunks
*/
public function setChunks(array $chunks) {
$this->chunks = $chunks;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Diff:: |
private | property | ||
Diff:: |
private | property | ||
Diff:: |
private | property | ||
Diff:: |
public | function | ||
Diff:: |
public | function | ||
Diff:: |
public | function | ||
Diff:: |
public | function | ||
Diff:: |
public | function |