DiffLine
API reference › Diff › DiffLine
Represents a single line of an edit script produced by DifferInterface.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$line readonly constructor | string | Line content without its trailing "\; a "\ left by CRLF input is kept. | DiffLine |
$op readonly constructor | DiffOp | Operation applied to the line. | DiffLine |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a diff line. | DiffLine |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(PHPForge\Diff\DiffOp $op, string $line)Creates a diff line.
Parameters
| Parameter | Type | Description |
|---|---|---|
$op | DiffOp | Operation applied to the line. |
$line | string | Line content without its trailing "\; a "\ left by CRLF input is kept. |