# SnapshotWriteResult

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

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

| final readonly class | `yii\debug\storage\SnapshotWriteResult` |
| --- | --- |
| Source | [`src/storage/SnapshotWriteResult.php`](https://github.com/yii2-extensions/debug/blob/main/src/storage/SnapshotWriteResult.php#L12) |

Carries 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, PHPForge\Debug\Storage\RequestSummary>\|null` | Committed entries, or `null` when a follow-up manifest read failed. | `SnapshotWriteResult` |
| <span id="property-removed"></span>`$removed` readonly constructor | `list<PHPForge\Debug\Storage\RequestSummary>` | Entries evicted from the manifest. | `SnapshotWriteResult` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Records the committed manifest and evicted request summaries. | `SnapshotWriteResult` |

## Method details

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

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

Records the committed manifest and evicted request summaries.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$entries` | `array<string, PHPForge\Debug\Storage\RequestSummary>\|null` | Committed entries, or `null` when a follow-up manifest read failed. |
| `$removed` | `list<PHPForge\Debug\Storage\RequestSummary>` | Entries evicted from the manifest. |