# SnapshotWriteResult

> Exposes the committed manifest and the summaries evicted by a snapshot write.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Storage](/docs/extensions/debug-core/reference/storage/index.md) › SnapshotWriteResult

| final readonly class | `PHPForge\Debug\Storage\SnapshotWriteResult` |
| --- | --- |
| Source | [`src/Storage/SnapshotWriteResult.php`](https://github.com/php-forge/debug-core/blob/main/src/Storage/SnapshotWriteResult.php#L10) |

Exposes the committed manifest and the summaries evicted by a snapshot write.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-entries"></span>`$entries` readonly constructor | `array<string,` [`RequestSummary`](/docs/extensions/debug-core/reference/storage/requestsummary/index.md)`>` | Committed manifest entries, newest first. | `SnapshotWriteResult` |
| <span id="property-removed"></span>`$removed` readonly constructor | `list<`[`RequestSummary`](/docs/extensions/debug-core/reference/storage/requestsummary/index.md)`>` | Entries evicted from the manifest. | `SnapshotWriteResult` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates a snapshot write result with the committed manifest and evictions. | `SnapshotWriteResult` |

## Method details

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

```php
public function __construct(array<string, PHPForge\Debug\Storage\RequestSummary> $entries, list<PHPForge\Debug\Storage\RequestSummary> $removed)
```

Creates a snapshot write result with the committed manifest and evictions.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$entries` | `array<string,` [`RequestSummary`](/docs/extensions/debug-core/reference/storage/requestsummary/index.md)`>` | Committed manifest entries, newest first. |
| `$removed` | `list<`[`RequestSummary`](/docs/extensions/debug-core/reference/storage/requestsummary/index.md)`>` | Entries evicted from the manifest. |