MergeResult
API reference › Scaffold › Merge › MergeResult
Represents the outcome of a merge.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$changed readonly constructor | bool | Whether $content differs from the consumer content. | MergeResult |
$content readonly constructor | string | Merged content; byte-identical to the consumer when $changed is false. | MergeResult |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates the result of a merge operation. | MergeResult |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $content, bool $changed)Creates the result of a merge operation.
Parameters
| Parameter | Type | Description |
|---|---|---|
$content | string | Merged content; byte-identical to the consumer when $changed is false. |
$changed | bool | Whether $content differs from the consumer content. |