# MergeResult

> Represents the outcome of a merge.

[API reference](/docs/api/index.md) › [Scaffold](/docs/extensions/scaffold/reference/index.md) › [Merge](/docs/extensions/scaffold/reference/merge/index.md) › MergeResult

| final readonly class | `PHPForge\Scaffold\Merge\MergeResult` |
| --- | --- |
| Source | [`src/Merge/MergeResult.php`](https://github.com/php-forge/scaffold/blob/main/src/Merge/MergeResult.php#L10) |

Represents the outcome of a merge.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-changed"></span>`$changed` readonly constructor | `bool` | Whether `$content` differs from the consumer content. | `MergeResult` |
| <span id="property-content"></span>`$content` readonly constructor | `string` | Merged content; byte-identical to the consumer when `$changed` is `false`. | `MergeResult` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates the result of a merge operation. | `MergeResult` |

## Method details

### __construct() <span id="method-__construct"></span>

```php
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. |