Skip to content
PHP Ecosystem
Explore

MergeResult

API reference › Scaffold › Merge › MergeResult

final readonly classPHPForge\Scaffold\Merge\MergeResult
Sourcesrc/Merge/MergeResult.php

Represents the outcome of a merge.

PropertyTypeDescriptionDefined by
$changed readonly constructorboolWhether $content differs from the consumer content.MergeResult
$content readonly constructorstringMerged content; byte-identical to the consumer when $changed is false.MergeResult
MethodDescriptionDefined by
__construct()Creates the result of a merge operation.MergeResult
public function __construct(string $content, bool $changed)

Creates the result of a merge operation.

Parameters

ParameterTypeDescription
$contentstringMerged content; byte-identical to the consumer when $changed is false.
$changedboolWhether $content differs from the consumer content.