Chris@14: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace SebastianBergmann\Diff; Chris@0: Chris@14: final class Line Chris@0: { Chris@0: const ADDED = 1; Chris@0: const REMOVED = 2; Chris@0: const UNCHANGED = 3; Chris@0: Chris@0: /** Chris@0: * @var int Chris@0: */ Chris@0: private $type; Chris@0: Chris@0: /** Chris@0: * @var string Chris@0: */ Chris@0: private $content; Chris@0: Chris@14: public function __construct(int $type = self::UNCHANGED, string $content = '') Chris@0: { Chris@0: $this->type = $type; Chris@0: $this->content = $content; Chris@0: } Chris@0: Chris@14: public function getContent(): string Chris@0: { Chris@0: return $this->content; Chris@0: } Chris@0: Chris@14: public function getType(): int Chris@0: { Chris@0: return $this->type; Chris@0: } Chris@0: }