class Line in Zircon Profile 8
Same name and namespace in other branches
- 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\DiffView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Line:: |
private | property | ||
Line:: |
private | property | ||
Line:: |
constant | |||
Line:: |
public | function | ||
Line:: |
public | function | ||
Line:: |
constant | |||
Line:: |
constant | |||
Line:: |
public | function |