You are here

class Diff in Zircon Profile 8

Same name in this branch
  1. 8 vendor/sebastian/diff/src/Diff.php \SebastianBergmann\Diff\Diff
  2. 8 core/lib/Drupal/Component/Diff/Diff.php \Drupal\Component\Diff\Diff
Same name and namespace in other branches
  1. 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\Diff
View 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

Namesort descending Modifiers Type Description Overrides
Diff::$chunks private property
Diff::$from private property
Diff::$to private property
Diff::getChunks public function
Diff::getFrom public function
Diff::getTo public function
Diff::setChunks public function
Diff::__construct public function