You are here

class Chunk in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/diff/src/Chunk.php \SebastianBergmann\Diff\Chunk

@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\Chunk

Expanded class hierarchy of Chunk

File

vendor/sebastian/diff/src/Chunk.php, line 21

Namespace

SebastianBergmann\Diff
View source
class Chunk {

  /**
   * @var int
   */
  private $start;

  /**
   * @var int
   */
  private $startRange;

  /**
   * @var int
   */
  private $end;

  /**
   * @var int
   */
  private $endRange;

  /**
   * @var array
   */
  private $lines;

  /**
   * @param int   $start
   * @param int   $startRange
   * @param int   $end
   * @param int   $endRange
   * @param array $lines
   */
  public function __construct($start = 0, $startRange = 1, $end = 0, $endRange = 1, array $lines = array()) {
    $this->start = (int) $start;
    $this->startRange = (int) $startRange;
    $this->end = (int) $end;
    $this->endRange = (int) $endRange;
    $this->lines = $lines;
  }

  /**
   * @return int
   */
  public function getStart() {
    return $this->start;
  }

  /**
   * @return int
   */
  public function getStartRange() {
    return $this->startRange;
  }

  /**
   * @return int
   */
  public function getEnd() {
    return $this->end;
  }

  /**
   * @return int
   */
  public function getEndRange() {
    return $this->endRange;
  }

  /**
   * @return array
   */
  public function getLines() {
    return $this->lines;
  }

  /**
   * @param array $lines
   */
  public function setLines(array $lines) {
    $this->lines = $lines;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Chunk::$end private property
Chunk::$endRange private property
Chunk::$lines private property
Chunk::$start private property
Chunk::$startRange private property
Chunk::getEnd public function
Chunk::getEndRange public function
Chunk::getLines public function
Chunk::getStart public function
Chunk::getStartRange public function
Chunk::setLines public function
Chunk::__construct public function Range