You are here

class Line in Zircon Profile 8

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

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

Expanded class hierarchy of Line

1 string reference to 'Line'
SimpletestResultsForm::addResultForm in core/modules/simpletest/src/Form/SimpletestResultsForm.php
Adds the result form to a $form.

File

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

Namespace

SebastianBergmann\Diff
View source
class Line {
  const ADDED = 1;
  const REMOVED = 2;
  const UNCHANGED = 3;

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

  /**
   * @var string
   */
  private $content;

  /**
   * @param int    $type
   * @param string $content
   */
  public function __construct($type = self::UNCHANGED, $content = '') {
    $this->type = $type;
    $this->content = $content;
  }

  /**
   * @return string
   */
  public function getContent() {
    return $this->content;
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
Line::$content private property
Line::$type private property
Line::ADDED constant
Line::getContent public function
Line::getType public function
Line::REMOVED constant
Line::UNCHANGED constant
Line::__construct public function