-
-
Notifications
You must be signed in to change notification settings - Fork 0
FileDiff
github-actions edited this page Apr 19, 2026
·
1 revision
Carries the result of comparing source and target file contents.
- Full name:
\FastForward\DevTools\Resource\FileDiff - This class is marked as final and can't be subclassed
- This class is a Final class
| Constant | Visibility | Type | Value |
|---|---|---|---|
STATUS_CHANGED |
public | string | 'changed' |
STATUS_UNCHANGED |
public | string | 'unchanged' |
STATUS_BINARY |
public | string | 'binary' |
STATUS_UNREADABLE |
public | string | 'unreadable' |
Creates a new file diff result.
public __construct(string $status, string $summary, string|null $diff = null): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$status |
string | the comparison status for the source and target files |
$summary |
string | the human-readable summary for console output |
$diff |
string|null | the optional unified diff payload |
Returns the comparison status.
public getStatus(): stringReturn Value:
the comparison status value
Returns the human-readable summary.
public getSummary(): stringReturn Value:
the summary for console output
Returns the optional unified diff payload.
public getDiff(): string|nullReturn Value:
the diff payload, or null when no text diff is available
Reports whether the compared files already match.
public isUnchanged(): boolReturn Value:
true when the source and target contents are identical
Reports whether the compared files produced a text diff.
public isChanged(): boolReturn Value:
true when a text diff is available